add current symlink to NVM_DIR

This commit is contained in:
Daniel Bretoi 2014-06-23 22:22:29 -07:00
parent 4c9a36e9ad
commit 29251e3f9b

1
nvm.sh
View File

@ -526,6 +526,7 @@ nvm() {
export NODE_PATH
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
export NVM_BIN="$NVM_DIR/$VERSION/bin"
rm -rf "$NVM_DIR/current" && ln -sf "$NVM_DIR/$VERSION" "$NVM_DIR/current"
echo "Now using node $VERSION"
;;
"run" )