From c33074cb54ad6ca1d7d2dee32082d6f15502b605 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 22 Nov 2014 10:45:53 -0800 Subject: [PATCH] Tweaking formatting of help output; adding `nvm exec` example. --- nvm.sh | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/nvm.sh b/nvm.sh index 969af37..54ec117 100644 --- a/nvm.sh +++ b/nvm.sh @@ -531,31 +531,32 @@ nvm() { echo "Node Version Manager" echo echo "Usage:" - echo " nvm help Show this message" - echo " nvm --version Print out the latest released version of nvm" - echo " nvm install [-s] Download and install a , [-s] from source. Uses .nvmrc if available" - echo " nvm uninstall Uninstall a version" - echo " nvm use Modify PATH to use . Uses .nvmrc if available" - echo " nvm run [] Run with as arguments. Uses .nvmrc if available for " - echo " nvm current Display currently activated version" - 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 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 " - echo " nvm unalias Deletes the alias named " - echo " nvm copy-packages Install global NPM packages contained in to current version" - echo " nvm unload Unload NVM from shell" + echo " nvm help Show this message" + echo " nvm --version Print out the latest released version of nvm" + echo " nvm install [-s] Download and install a , [-s] from source. Uses .nvmrc if available" + echo " nvm uninstall Uninstall a version" + echo " nvm use Modify PATH to use . Uses .nvmrc if available" + echo " nvm run [] Run with as arguments. Uses .nvmrc if available for " + echo " nvm current Display currently activated version" + 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 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 " + echo " nvm unalias Deletes the alias named " + echo " nvm copy-packages Install global \`npm\` packages contained in to current version" + echo " nvm unload Unload \`nvm\` from shell" echo echo "Example:" - echo " nvm install v0.10.24 Install a specific version number" - echo " nvm use 0.10 Use the latest available 0.10.x release" - echo " nvm run 0.10.24 myApp.js Run myApp.js using node v0.10.24" - echo " nvm alias default 0.10.24 Set default node version on a shell" + echo " nvm install v0.10.32 Install a specific version number" + echo " nvm use 0.10 Use the latest available 0.10.x release" + echo " nvm run 0.10.32 app.js Run app.js using node v0.10.32" + echo " nvm exec 0.10.32 node app.js Run \`node app.js\` with the PATH pointing to node v0.10.32" + echo " nvm alias default 0.10.32 Set default node version on a shell" echo echo "Note:" - echo " to remove, delete, or uninstall nvm - just remove ~/.nvm, ~/.npm, and ~/.bower folders" + echo " to remove, delete, or uninstall nvm - just remove ~/.nvm, ~/.npm, and ~/.bower folders" echo ;;