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