mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Don't assume NVM_DIR is ~/.nvm
Use $NVM_DIR instead of assuming user installed nvm to ~/.nvm
This commit is contained in:
parent
1b1315a777
commit
0b343a8f9e
1 changed files with 2 additions and 2 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