2020-02-28 21:00:44 +01:00
|
|
|
function gi() { curl -fLw '\n' 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-06-14 20:32:15 +02:00
|
|
|
curl -sfL 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
|