mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-07-03 14:13:43 +00:00
add current symlink to NVM_DIR
This commit is contained in:
parent
4c9a36e9ad
commit
29251e3f9b
1
nvm.sh
1
nvm.sh
@ -526,6 +526,7 @@ nvm() {
|
|||||||
export NODE_PATH
|
export NODE_PATH
|
||||||
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
export NVM_PATH="$NVM_DIR/$VERSION/lib/node"
|
||||||
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
||||||
|
rm -rf "$NVM_DIR/current" && ln -sf "$NVM_DIR/$VERSION" "$NVM_DIR/current"
|
||||||
echo "Now using node $VERSION"
|
echo "Now using node $VERSION"
|
||||||
;;
|
;;
|
||||||
"run" )
|
"run" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user