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
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