* Make the creation of a symlink an overridable default behaviour

master
stelcheck 2014-08-28 22:45:07 +09:00
parent f9769e40dd
commit 59939d09e8
1 changed files with 3 additions and 1 deletions

2
nvm.sh
View File

@ -647,7 +647,9 @@ 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
rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"
fi
echo "Now using node $VERSION"
;;
"run" )