mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-23 21:01:58 +00:00
befdb4649b
* Add trailing new line at the end of output * Double-quote variable expansion
12 lines
284 B
Bash
12 lines
284 B
Bash
function gi() { curl -fLw '\n' 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
|