From 656549dd443ae1bd67c8f60b3133c12666ea41b4 Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Wed, 5 Oct 2011 12:43:50 -0700 Subject: [PATCH 1/2] make "list" a synonym for "ls" --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 3da58a2..0f05396 100755 --- a/nvm.sh +++ b/nvm.sh @@ -200,7 +200,7 @@ nvm() export NVM_BIN="$NVM_DIR/$VERSION/bin" echo "Now using node $VERSION" ;; - "ls" ) + "ls" | "list" ) if [ $# -ne 1 ]; then nvm_version $2 return From 26b07fbdffbfca96e90125f848521d22a10104f6 Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Wed, 5 Oct 2011 12:47:57 -0700 Subject: [PATCH 2/2] remove references to stable and latest --- nvm.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nvm.sh b/nvm.sh index 0f05396..e9aa070 100755 --- a/nvm.sh +++ b/nvm.sh @@ -206,9 +206,7 @@ nvm() 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" )