ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
elventear 611a2c7a12 Use HTTPS for gitignore.io
gitignore.io has deprecated HTTP, breaking this plugin. Using HTTPS restores functionality.
2014-10-09 10:25:19 -05: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