creationix 15 years ago
parent
commit
4f4dec1c89
  1. 5
      nvm.sh

5
nvm.sh

@ -21,6 +21,7 @@ nvm()
echo "Usage:" echo "Usage:"
echo " nvm install version" echo " nvm install version"
echo " nvm use version" echo " nvm use version"
echo " nvm list"
echo echo
;; ;;
"install" ) "install" )
@ -49,6 +50,10 @@ nvm()
PATH="$NVM_DIR/$2/bin:$PATH" PATH="$NVM_DIR/$2/bin:$PATH"
echo "Now using node $2" 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 nvm help
;; ;;

Loading…
Cancel
Save