initial
This commit is contained in:
parent
090766cab0
commit
a33f99e765
1725 changed files with 129819 additions and 0 deletions
12
dot_oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
12
dot_oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue