ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Antonio Murdaca 4bd6ed1d2c Update gitignore.plugin.zsh
As per `http://www.gitignore.io/cli`'s news (in yellow at the top) there's now need to add `www` before the actual gitignore url.
2014-02-02 12:34:26 +01:00

12 lines
261 B
Bash

function gi() { curl 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