2020-02-28 20:00:44 +00:00
|
|
|
function gi() { curl -fLw '\n' https://www.gitignore.io/api/"${(j:,:)@}" }
|
2013-10-04 20:29:33 +00:00
|
|
|
|
2014-10-15 13:33:49 +00:00
|
|
|
_gitignoreio_get_command_list() {
|
2018-06-14 18:32:15 +00:00
|
|
|
curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
|
2013-10-04 20:29:33 +00:00
|
|
|
}
|
|
|
|
|
2014-10-15 13:33:49 +00:00
|
|
|
_gitignoreio () {
|
2013-10-04 22:56:17 +00:00
|
|
|
compset -P '*,'
|
2014-10-15 13:33:49 +00:00
|
|
|
compadd -S '' `_gitignoreio_get_command_list`
|
2013-10-04 20:29:33 +00:00
|
|
|
}
|
|
|
|
|
2014-10-15 13:33:49 +00:00
|
|
|
compdef _gitignoreio gi
|