1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-25 05:41:58 +00:00
ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Brian McKenna 1df7d01618 Fix URL to gi (gitignore) function
Previous URL doesn't seem to work because the host requires a www
prefix.
2014-02-18 14:43:42 -07:00

12 lines
No EOL
256 B
Bash

function gi() { curl http://www.gitignore.io/api/$@ ;}
_gitignireio_get_command_list() {
curl -s http://gitignore.io/api/list | tr "," "\n"
}
_gitignireio () {
compset -P '*,'
compadd -S '' `_gitignireio_get_command_list`
}
compdef _gitignireio gi