From 0b343a8f9ef87df43b9a884cbb88e90f7eb1d0ad Mon Sep 17 00:00:00 2001 From: David O'Trakoun Date: Wed, 27 Apr 2016 11:53:45 -0400 Subject: [PATCH] Don't assume NVM_DIR is ~/.nvm Use $NVM_DIR instead of assuming user installed nvm to ~/.nvm --- plugins/nvm/_nvm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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