diff --git a/nvm.sh b/nvm.sh index e5b5c21..cd2befd 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1193,6 +1193,8 @@ nvm() { echo " nvm ls List installed versions" echo " nvm ls List versions matching a given description" echo " nvm ls-remote List remote versions available for install" + echo " nvm version Resolve the given description to a single local version" + echo " nvm version-remote Resolve the given description to a single remote version" echo " nvm deactivate Undo effects of \`nvm\` on current shell" echo " nvm alias [] Show all aliases beginning with " echo " nvm alias Set an alias named pointing to " @@ -1851,7 +1853,10 @@ $NVM_LS_REMOTE_IOJS_OUTPUT" | command grep -v "N/A" | sed '/^$/d')" echo "Cache cleared." ;; "version" ) - nvm_version $2 + nvm_version "$2" + ;; + "version-remote" ) + nvm_remote_version "$2" ;; "--version" ) echo "0.25.4"