2018-04-25 14:11:46 +02:00
|
|
|
function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
|
2013-10-04 22:29:33 +02:00
|
|
|
|
2014-10-15 15:33:49 +02:00
|
|
|
_gitignoreio_get_command_list() {
|
2018-04-25 14:11:46 +02:00
|
|
|
curl -fL 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
|