ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Parham Alvani 5efa5138bf silence mode of curl ()
Uses silence mode of curl for better autocomplete.

Co-authored-by: Dominik Rimpf <dev@d-rimpf.de>
2018-06-14 20:32:15 +02:00

12 lines
276 B
Bash

function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() {
curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
}
_gitignoreio () {
compset -P '*,'
compadd -S '' `_gitignoreio_get_command_list`
}
compdef _gitignoreio gi