Adding a symlink in .nvm to the current version.

This commit is contained in:
jsdevel committed 2014-07-12 12:01:35 -07:00
1 parent f1b8cf8fd6
commit 3fa004293c
3 files changed
+32 -1

No files matched your search

+1
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" )