Update readme and comment

master
Tim Caswell 2011-02-25 11:53:38 -08:00
parent 2d4c9b0846
commit 37ffd82af4
2 changed files with 5 additions and 5 deletions

View File

@ -19,13 +19,13 @@ Often I also put in a line to use a specific version of node.
## Usage ## Usage
To download, compile, and install the v0.2.5 release of node, do this: To download, compile, and install the v0.4.1 release of node, do this:
nvm install v0.2.5 nvm install v0.4.1
And then in any new shell just use the installed version: And then in any new shell just use the installed version:
nvm use v0.2.5 nvm use v0.4.1
If you want to see what versions are available: If you want to see what versions are available:
@ -37,5 +37,5 @@ To restore your PATH, you can deactivate it.
To set a default Node version to be used in any new shell, use the alias 'default': To set a default Node version to be used in any new shell, use the alias 'default':
nvm alias default v0.2.5 nvm alias default v0.4.1

2
nvm.sh
View File

@ -5,7 +5,7 @@
# Implemented by Tim Caswell <tim@creationix.com> # Implemented by Tim Caswell <tim@creationix.com>
# with much bash help from Matthew Ranney # with much bash help from Matthew Ranney
# Auto detect the NVM_DIR using magic bash 3.x stuff # Auto detect the NVM_DIR
if [ ! -d "$NVM_DIR" ]; then if [ ! -d "$NVM_DIR" ]; then
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd)
fi fi