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
This commit is contained in:
Oliver Heard 2014-01-15 21:26:39 +00:00
commit b9a5edaa68

View file

@ -1,7 +1,7 @@
function gi() { curl http://gitignore.io/api/$@ ;}
function gi() { curl http://www.gitignore.io/api/$@ ;}
_gitignireio_get_command_list() {
curl -s http://gitignore.io/api/list | tr "," "\n"
curl -s http://www.gitignore.io/api/list | tr "," "\n"
}
_gitignireio () {
@ -9,4 +9,4 @@ _gitignireio () {
compadd -S '' `_gitignireio_get_command_list`
}
compdef _gitignireio gi
compdef _gitignireio gi