Tweaking formatting of help output; adding `nvm exec` example.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jordan Harband · committed by Jordan Harband · parent 689c52c · Browse files · 1 file·+22 added−21 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+22 added−21 removed
- other:+22 added−21 removed
Provenance
- Commit
c33074c- Tree
a29e580- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
689c52c
1 file changed+22 added−21 removed
modified:nvm.sh+22 added-21 removed
529 unmodified lines530 echo531 echo "Node Version Manager"532 echo533 echo "Usage:"534- echo " nvm help Show this message"535- echo " nvm --version Print out the latest released version of nvm"536- echo " nvm install [-s] <version> Download and install a <version>, [-s] from source. Uses .nvmrc if available"537- echo " nvm uninstall <version> Uninstall a version"538- echo " nvm use <version> Modify PATH to use <version>. Uses .nvmrc if available"539- echo " nvm run <version> [<args>] Run <version> with <args> as arguments. Uses .nvmrc if available for <version>"540- echo " nvm current Display currently activated version"541- echo " nvm ls List installed versions"542- echo " nvm ls <version> List versions matching a given description"543- echo " nvm ls-remote List remote versions available for install"544- echo " nvm deactivate Undo effects of NVM on current shell"545- echo " nvm alias [<pattern>] Show all aliases beginning with <pattern>"546- echo " nvm alias <name> <version> Set an alias named <name> pointing to <version>"547- echo " nvm unalias <name> Deletes the alias named <name>"548- echo " nvm copy-packages <version> Install global NPM packages contained in <version> to current version"549- echo " nvm unload Unload NVM from shell"534+ echo " nvm help Show this message"535+ echo " nvm --version Print out the latest released version of nvm"536+ echo " nvm install [-s] <version> Download and install a <version>, [-s] from source. Uses .nvmrc if available"537+ echo " nvm uninstall <version> Uninstall a version"538+ echo " nvm use <version> Modify PATH to use <version>. Uses .nvmrc if available"539+ echo " nvm run <version> [<args>] Run <version> with <args> as arguments. Uses .nvmrc if available for <version>"540+ echo " nvm current Display currently activated version"541+ echo " nvm ls List installed versions"542+ echo " nvm ls <version> List versions matching a given description"543+ echo " nvm ls-remote List remote versions available for install"544+ echo " nvm deactivate Undo effects of \`nvm\` on current shell"545+ echo " nvm alias [<pattern>] Show all aliases beginning with <pattern>"546+ echo " nvm alias <name> <version> Set an alias named <name> pointing to <version>"547+ echo " nvm unalias <name> Deletes the alias named <name>"548+ echo " nvm copy-packages <version> Install global \`npm\` packages contained in <version> to current version"549+ echo " nvm unload Unload \`nvm\` from shell"550 echo551 echo "Example:"552- echo " nvm install v0.10.24 Install a specific version number"553- echo " nvm use 0.10 Use the latest available 0.10.x release"554- echo " nvm run 0.10.24 myApp.js Run myApp.js using node v0.10.24"555- echo " nvm alias default 0.10.24 Set default node version on a shell"552+ echo " nvm install v0.10.32 Install a specific version number"553+ echo " nvm use 0.10 Use the latest available 0.10.x release"554+ echo " nvm run 0.10.32 app.js Run app.js using node v0.10.32"555+ echo " nvm exec 0.10.32 node app.js Run \`node app.js\` with the PATH pointing to node v0.10.32"556+ echo " nvm alias default 0.10.32 Set default node version on a shell"557 echo558 echo "Note:"558- echo " to remove, delete, or uninstall nvm - just remove ~/.nvm, ~/.npm, and ~/.bower folders"559+ echo " to remove, delete, or uninstall nvm - just remove ~/.nvm, ~/.npm, and ~/.bower folders"560 echo561 ;;562 563 "install" | "i" )498 unmodified lines