ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Oliver Heard b9a5edaa68 Updated gitignore plugin as per website notice
The notice at http://www.gitignore.io/cli is reproduced verbatim below for
future reference:

    On January 6th, 2014 gitignore.io moved to Heroku which doesn't allow naked
    domains. If your gi command is not functioning, update your script to point
    to www.gitignore.io instead of gitignore.io
2014-01-15 21:26:39 +00: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