Squashed 'oh-my-zsh/' content from commit 550ccca
git-subtree-dir: oh-my-zsh git-subtree-split: 550ccca91cb45fcf26a8f2c3c60da675b995e3f3
This commit is contained in:
12
plugins/gitignore/gitignore.plugin.zsh
Normal file
12
plugins/gitignore/gitignore.plugin.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
|
||||
|
||||
_gitignoreio_get_command_list() {
|
||||
curl -sL https://www.gitignore.io/api/list | tr "," "\n"
|
||||
}
|
||||
|
||||
_gitignoreio () {
|
||||
compset -P '*,'
|
||||
compadd -S '' `_gitignoreio_get_command_list`
|
||||
}
|
||||
|
||||
compdef _gitignoreio gi
|
||||
Reference in New Issue
Block a user