mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Add brew support for nvm plugin inspired in rbenv plugin
This commit is contained in:
parent
eb51ddbaa2
commit
d6181dda51
2 changed files with 26 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#compdef nvm
|
||||
#autoload
|
||||
|
||||
[[ -s ~/.nvm/nvm.sh ]] || return 0
|
||||
[[ -s $NVM_DIR/nvm.sh ]] || return 0
|
||||
|
||||
local -a _1st_arguments
|
||||
_1st_arguments=(
|
||||
|
|
@ -23,4 +23,4 @@ _arguments -C '*:: :->subcmds' && return 0
|
|||
if (( CURRENT == 1 )); then
|
||||
_describe -t commands "nvm subcommand" _1st_arguments
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue