2014-10-15 17:17:04 +02:00
|
|
|
function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
|
2013-10-04 22:29:33 +02:00
|
|
|
|
2014-10-15 15:33:49 +02:00
|
|
|
_gitignoreio_get_command_list() {
|
2014-10-15 17:17:04 +02:00
|
|
|
curl -sL https://www.gitignore.io/api/list | tr "," "\n"
|
2013-10-04 22:29:33 +02:00
|
|
|
}
|
|
|
|
|
2014-10-15 15:33:49 +02:00
|
|
|
_gitignoreio () {
|
2013-10-05 00:56:17 +02:00
|
|
|
compset -P '*,'
|
2014-10-15 15:33:49 +02:00
|
|
|
compadd -S '' `_gitignoreio_get_command_list`
|
2013-10-04 22:29:33 +02:00
|
|
|
}
|
|
|
|
|
2014-10-15 15:33:49 +02:00
|
|
|
compdef _gitignoreio gi
|