This commit is contained in:
Alex Shaindlin 2014-10-15 13:40:32 +00:00
commit 565e53463d

View file

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