1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 08:50:08 +00:00
ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
2014-10-22 18:13:15 +02:00

12 lines
266 B
Bash

function gi() { curl -L https://www.gitignore.io/api/$@ ;}
_gitignoreio_get_command_list() {
curl -s https://www.gitignore.io/api/list | tr "," "\n"
}
_gitignoreio () {
compset -P '*,'
compadd -S '' `_gitignoreio_get_command_list`
}
compdef _gitignoreio gi