ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Andrii Kostenko b9a11b16fe fixed URL on github.io
github.io moved to https and http returns 301 redirect
2014-10-22 18:13:15 +02:00

13 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