1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00
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

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