2014-02-18 21:43:42 +00:00
|
|
|
function gi() { curl http://www.gitignore.io/api/$@ ;}
|
2013-10-04 20:29:33 +00:00
|
|
|
|
|
|
|
_gitignireio_get_command_list() {
|
2014-02-19 20:33:02 +00:00
|
|
|
curl -s http://www.gitignore.io/api/list | tr "," "\n"
|
2013-10-04 20:29:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_gitignireio () {
|
2013-10-04 22:56:17 +00:00
|
|
|
compset -P '*,'
|
|
|
|
compadd -S '' `_gitignireio_get_command_list`
|
2013-10-04 20:29:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compdef _gitignireio gi
|