mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 19:46:29 +08:00
5efa5138bf
Uses silence mode of curl for better autocomplete. Co-authored-by: Dominik Rimpf <dev@d-rimpf.de>
13 lines
276 B
Bash
13 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
|