master
parent
9cd2dd0c37
commit
4f4dec1c89
5
nvm.sh
5
nvm.sh
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue