Add `nvm version-remote`; document `nvm version`
parent
d7035c5e61
commit
071323847c
7
nvm.sh
7
nvm.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue