Adding "update" command

This commit is contained in:
Jordan Harband 2013-08-04 00:13:00 -07:00
parent dc0cff1f25
commit 9adaf4c760
1 changed files with 3 additions and 0 deletions

3
nvm.sh
View File

@ -492,6 +492,9 @@ nvm() {
"version" ) "version" )
print_versions "`nvm_version $2`" print_versions "`nvm_version $2`"
;; ;;
"update" )
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
;;
* ) * )
nvm help nvm help
;; ;;