Adding a symlink in .nvm to the current version.

This commit is contained in:
jsdevel
2014-07-12 02:28:20 -07:00
parent f1b8cf8fd6
commit 3fa004293c
3 changed files with 32 additions and 1 deletions

1
nvm.sh
View File

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