ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
David Jelić bbc4e7c329 Use https instead of http
Request to http redirects to https so either add -L to curl to follow redirects or go directly to https.
2014-10-29 20:57:12 +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