Update the plugins managment. Add the function 'omz-plugin' (inspired from bash-it)

This commit is contained in:
Michel Massaro 2017-01-26 11:23:23 +01:00
commit 5c4f982ff7
417 changed files with 124 additions and 1 deletions

View file

@ -0,0 +1,12 @@
function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() {
curl -sL https://www.gitignore.io/api/list | tr "," "\n"
}
_gitignoreio () {
compset -P '*,'
compadd -S '' `_gitignoreio_get_command_list`
}
compdef _gitignoreio gi