ohmyzsh/plugins/gitignore/gitignore.plugin.zsh
Dominik Rimpf aa9f8bdec2 Fixed curl-output used for auto-completion
Removed the status-output with the `-s` argument.
2018-06-14 11:32:49 +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