ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
2014-10-09 13:17:40 +08:00

12 lines
264 B
Bash

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