2018-04-25 12:11:46 +00:00
|
|
|
function gi() { curl -fL 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-04-25 12:11:46 +00:00
|
|
|
curl -fL 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
|