ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Andrii Kostenko b0b95fd85d fixed URL on github.io
github.io moved to https and http returns 301 redirect
2014-11-11 19:49:40 -03: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