ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Seth Mason 2efcc94f12 Fix problem with redirect on http.
gitignore.io now redirects from http to https. Make https the default now.
2014-09-15 16:29:30 -07:00

12 lines
262 B
Bash

function gi() { curl https://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