creationix 2010-04-15 09:20:00 -07:00
parent 9cd2dd0c37
commit 4f4dec1c89
1 changed files with 5 additions and 0 deletions

5
nvm.sh
View File

@ -21,6 +21,7 @@ nvm()
echo "Usage:"
echo " nvm install version"
echo " nvm use version"
echo " nvm list"
echo
;;
"install" )
@ -49,6 +50,10 @@ nvm()
PATH="$NVM_DIR/$2/bin:$PATH"
echo "Now using node $2"
;;
"list" )
# TODO: put a star by the current active one if possible
ls "$NVM_DIR" | grep -v src
;;
* )
nvm help
;;