From 1eb69e9a795cc19450178c07d8d382622bc7ad70 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Fri, 16 Oct 2026 15:19:13 -0300 Subject: first commit --- .config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh (limited to '.config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh') diff --git a/.config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh b/.config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh new file mode 100644 index 0000000..3271d61 --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh @@ -0,0 +1,12 @@ +function gi() { curl -fLw '\n' https://www.toptal.com/developers/gitignore/api/"${(j:,:)@}" } + +_gitignoreio_get_command_list() { + curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n" +} + +_gitignoreio () { + compset -P '*,' + compadd -S '' `_gitignoreio_get_command_list` +} + +compdef _gitignoreio gi -- cgit v1.3