mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-11-17 18:40:44 +01:00
Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on use).
Fixes #499.
This commit is contained in:
2
nvm.sh
2
nvm.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user