diff --git a/nvm.sh b/nvm.sh index 3da58a2..e9aa070 100755 --- a/nvm.sh +++ b/nvm.sh @@ -200,15 +200,13 @@ nvm() export NVM_BIN="$NVM_DIR/$VERSION/bin" echo "Now using node $VERSION" ;; - "ls" ) + "ls" | "list" ) if [ $# -ne 1 ]; then nvm_version $2 return fi nvm_version all - for P in {stable,latest,current}; do - echo -ne "$P: \t"; nvm_version $P - done + echo -ne "current: \t"; nvm_version current nvm alias ;; "alias" )