oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Alexander Hramov bd4f7e24ea Update gitignore.plugin.zsh
Fix URL to gi (gitignore) function in _gitignireio_get_command_list function
2014-02-19 15:08:47 +03:00

13 lines
261 B
Bash

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