mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-18 03:40:08 +00:00
Merge pull request #2145 from futjikato/master
Added gitignore.io custom plugin
This commit is contained in:
commit
a8efe61d53
1 changed files with 12 additions and 0 deletions
12
custom/plugins/gitignore/gitignore.plugin.zsh
Normal file
12
custom/plugins/gitignore/gitignore.plugin.zsh
Normal file
|
@ -0,0 +1,12 @@
|
|||
function gi() { curl http://gitignore.io/api/$@ ;}
|
||||
|
||||
_gitignireio_get_command_list() {
|
||||
curl -s http://gitignore.io/api/list | tr "," "\n"
|
||||
}
|
||||
|
||||
_gitignireio () {
|
||||
compset -P '*,'
|
||||
compadd -S '' `_gitignireio_get_command_list`
|
||||
}
|
||||
|
||||
compdef _gitignireio gi
|
Loading…
Reference in a new issue