mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 19:00:07 +00:00
1df7d01618
Previous URL doesn't seem to work because the host requires a www prefix.
12 lines
No EOL
256 B
Bash
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 |