ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Hans Rødtang 9e8e1558c6 Changed to use HTTPS.
The resource has been moved to use HTTPS, using HTTP will only return a HTTP 301 Moved Permanently message and thus not work.
2014-11-06 16:07:48 +01:00

12 lines
263 B
Bash

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