You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
322 B
12 lines
322 B
function gi() { curl -fLw '\n' https://www.toptal.com/developers/gitignore/api/"${(j:,:)@}" } |
|
|
|
_gitignoreio_get_command_list() { |
|
curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n" |
|
} |
|
|
|
_gitignoreio () { |
|
compset -P '*,' |
|
compadd -S '' `_gitignoreio_get_command_list` |
|
} |
|
|
|
compdef _gitignoreio gi
|
|
|