mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge b7ea976ca0 into 96e4e5dd03
This commit is contained in:
commit
565e53463d
1 changed files with 6 additions and 6 deletions
|
|
@ -1,12 +1,12 @@
|
|||
function gi() { curl http://www.gitignore.io/api/$@ ;}
|
||||
function gi() { curl https://www.gitignore.io/api/$@ ;}
|
||||
|
||||
_gitignireio_get_command_list() {
|
||||
curl -s http://www.gitignore.io/api/list | tr "," "\n"
|
||||
_gitignoreio_get_command_list() {
|
||||
curl -s https://www.gitignore.io/api/list | tr "," "\n"
|
||||
}
|
||||
|
||||
_gitignireio () {
|
||||
_gitignoreio () {
|
||||
compset -P '*,'
|
||||
compadd -S '' `_gitignireio_get_command_list`
|
||||
compadd -S '' `_gitignoreio_get_command_list`
|
||||
}
|
||||
|
||||
compdef _gitignireio gi
|
||||
compdef _gitignoreio gi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue