mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
The notice at http://www.gitignore.io/cli is reproduced verbatim below for future reference: On January 6th, 2014 gitignore.io moved to Heroku which doesn't allow naked domains. If your gi command is not functioning, update your script to point to www.gitignore.io instead of gitignore.io
12 lines
261 B
Bash
12 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
|