Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on use).

Fixes #499.
This commit is contained in:
Jordan Harband
2014-10-14 17:38:42 -07:00
parent 7b6e06e556
commit ca89cceb99
4 changed files with 11 additions and 9 deletions

2
nvm.sh
View File

@@ -802,7 +802,7 @@ nvm() {
export NODE_PATH
export NVM_PATH="$NVM_VERSION_DIR/lib/node"
export NVM_BIN="$NVM_VERSION_DIR/bin"
if [ "$NVM_SYMLINK_CURRENT" = true ] || [ -z "$NVM_SYMLINK_CURRENT" ]; then
if [ "$NVM_SYMLINK_CURRENT" = true ]; then
rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"
fi
echo "Now using node $VERSION"