mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge 26b07fbdff
into ff3e7d4025
This commit is contained in:
commit
30a8170237
6
nvm.sh
6
nvm.sh
@ -200,15 +200,13 @@ nvm()
|
|||||||
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
export NVM_BIN="$NVM_DIR/$VERSION/bin"
|
||||||
echo "Now using node $VERSION"
|
echo "Now using node $VERSION"
|
||||||
;;
|
;;
|
||||||
"ls" )
|
"ls" | "list" )
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
nvm_version $2
|
nvm_version $2
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
nvm_version all
|
nvm_version all
|
||||||
for P in {stable,latest,current}; do
|
echo -ne "current: \t"; nvm_version current
|
||||||
echo -ne "$P: \t"; nvm_version $P
|
|
||||||
done
|
|
||||||
nvm alias
|
nvm alias
|
||||||
;;
|
;;
|
||||||
"alias" )
|
"alias" )
|
||||||
|
Loading…
Reference in New Issue
Block a user