diff --git a/plugins/nvm/_nvm b/plugins/nvm/_nvm index a95c9e375..b190105b8 100644 --- a/plugins/nvm/_nvm +++ b/plugins/nvm/_nvm @@ -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 \ No newline at end of file +fi