mirror of
https://github.com/KevinMidboe/dotfiles.git
synced 2025-12-29 13:11:09 +00:00
Added oh-my-zsh in all its glory
This commit is contained in:
12
.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
12
.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user