ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Brian McKenna a71e770f6e Fix URL to gi (gitignore) function
Previous URL doesn't seem to work because the host requires a www
prefix.
2014-11-28 14:36:29 +01:00

12 lines
No EOL
256 B
Bash

function gi() { curl http://www.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