Add `nvm version-remote`; document `nvm version`

Jordan Harband 2015-08-04 14:03:57 -07:00
parent d7035c5e61
commit 071323847c
1 changed files with 6 additions and 1 deletions

7
nvm.sh
View File

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