Commit Graph

290 Commits (dc7a42062ec2412957e63cc2b84fd3bd66733b35)

Author SHA1 Message Date
Lucian Holland fda6e7f8de Rewrote version listing system
Now sorts correctly in all instances and prints highlights
even in sorted views. Also will output a list of matching versions
for commands of the form nvm ls 0.4* rather than just printing one
version. nvm version 0.4 still prints the single latest matching
version, however.
2011-11-04 20:38:16 +00:00
Lucian Holland 6f994715d6 Fixed incorrect sorting of versions 2011-11-04 20:38:15 +00:00
Tim Caswell 8dad534464 Remove broken wget emulation 2011-11-03 16:19:26 -05:00
Maciej Małecki 335a253323 [docs] Document `run` command 2011-10-29 10:08:13 +02:00
Maciej Małecki 09483f422e [feature] Add `run` command
`run` command runs given node version without modyfing global state:

    [maciej@PC07 nvm (run)]$ node --version
    v0.4.12
    [maciej@PC07 nvm (run)]$ nvm run 0.4.12
    Running node v0.4.12
    > process.version
    'v0.4.12'
    > [maciej@PC07 nvm (run)]$ nvm run 0.5.9
    Running node v0.5.9
    > process.version
    'v0.5.9'
    > [maciej@PC07 nvm (run)]$ node --version
    v0.4.12
2011-10-29 10:08:05 +02:00
Tim Caswell 4692f496da Merge pull request #71 from bronson/master
trivial: remove references to stable and latest
2011-10-05 14:48:21 -07:00
Scott Bronson 26b07fbdff remove references to stable and latest 2011-10-05 12:47:57 -07:00
Scott Bronson 656549dd44 make "list" a synonym for "ls" 2011-10-05 12:43:50 -07:00
Tim Caswell ff3e7d4025 Merge pull request #70 from mdiniz/master
Fix wrong full version matching
2011-10-01 16:37:41 -07:00
Marcelo Diniz f939adbedb Fix wrong full version matching 2011-10-02 00:59:20 +02:00
Tim Caswell ac9a52886d Remove support for sync latest and stable. I never liked them. Fork if you want them
Change-Id: I9092c5625305f54212625af0c16f7ead73a3d9fa
2011-09-28 10:56:16 -07:00
Tim Caswell 273aeeee73 Merge pull request #67 from mmalecki/already-installed
Don't allow installing already installed version.
2011-09-19 15:09:32 -07:00
Maciej Małecki 33c91398bf Don't allow installing already installed version.
Trying to install already installed version causes misleading message
from curl and nvm:

    $ nvm install v0.4.11
    curl: (33) HTTP server doesn't seem to support byte ranges. Cannot
    resume.
    nvm: install v0.4.11 failed!

Of course, resuming interrupted installs is still possible (script
checks for existance of `$VERSION` in `$NVM_DIR`, not `$NVM_DIR/src`).
2011-09-17 13:16:37 +02:00
Tim Caswell 087ce15ccd Merge pull request #62 from welwood08/patch-1
uninstall should delete the extracted source files from the src directory
2011-09-05 11:01:31 -07:00
Will 92703939ee uninstall should delete the extracted source files from the src directory, not nvm root 2011-09-04 14:27:04 +02:00
Tim Caswell d6ef0c47a5 Merge pull request #60 from croach/master
Fix for Issue #59
2011-08-29 12:40:08 -07:00
Christopher Roach fd1eb7559b Added a fix for issue #59 2011-08-27 18:02:41 -07:00
Tim Caswell c562a491ca Merge pull request #57 from ghuntley/zsh
zsh compatibility fixes
2011-08-25 09:16:22 -07:00
Geoffrey Huntley 964e7c303c updated shorthand for -# to --progress-bar on wget emulation function() 2011-08-25 14:32:47 +10:00
Geoffrey Huntley 1251684440 - version detection now works with zsh
- curl routine now compatible with zsh
- changed curl to use --progress-bar instead of unsafe shorthand (-#)
2011-08-25 14:03:13 +10:00
Tim Caswell 2ecd1fac63 Merge pull request #54 from evnm/add-uninstall-and-unalias
Add unalias and uninstall commands
2011-08-19 21:20:50 -07:00
Evan Meagher 46302a25d2 Add unalias and uninstall commands. 2011-08-19 18:00:25 -07:00
Tim Caswell d5638cb241 Merge pull request #44 from zzen/patch-1
Added copy-packages command
2011-08-18 09:35:12 -07:00
Kieran Huggins e9f35e7b15 don't shed all over the user's shell 2011-07-28 01:31:35 -04:00
Kieran Huggins fab5db0ec8 add support for release directories ( e.g. >= v0.5.1 ) 2011-07-27 17:50:41 -04:00
Jakub Nešetřil 4c8d3a70ea Added copy-packages command 2011-07-02 09:14:48 -07:00
Tim Caswell c10ca74b5b NVM shouldn't really be a NPM module 2011-05-05 13:55:09 -07:00
Tim Caswell 8d97b78da7 Fix a couple little bugs 2011-05-05 13:51:08 -07:00
Tim Caswell d509e32c6f Merge pull request #24 from carter-thaxton/master.
Force use of unaliased version of ls from shell
2011-05-02 13:46:15 -07:00
Carter Thaxton 61585251f5 Force unaliased use of ls, for those of us who alias ls in their shell 2011-04-09 14:47:50 -07:00
Tim Caswell 83520186d8 Bump version 2011-02-25 12:33:32 -08:00
Tim Caswell 37ffd82af4 Update readme and comment 2011-02-25 11:53:38 -08:00
Isaac Wolkerstorfer 2d4c9b0846 Merge remote-tracking branch 'origin/master'
Conflicts:
	nvm.sh
2011-02-25 20:30:08 +01:00
Isaac Wolkerstorfer f50e7b1d05 Merge branch 'versions' 2011-02-25 20:14:47 +01:00
Tim Caswell 66a9f01a0e Fix for ZSH by wavded 2011-02-25 09:17:27 -08:00
Tim Caswell f668d354a9 Update the sample text to reflect current stable 2011-02-18 09:46:47 -08:00
Scott Bronson d13d6b199a use a subshell instead of setting the START var
also don't try to install npm if node installation fails.
2011-02-13 21:33:28 -08:00
Isaac Wolkerstorfer cd3304548f Fix some syntax issues 2011-01-29 16:24:42 +01:00
Isaac Wolkerstorfer 45b89ab396 Create alias dir on demand 2011-01-25 20:18:07 +01:00
Isaac Wolkerstorfer 57d62762e1 Don't overwrite existing NVM_DIR vars 2011-01-25 17:29:49 +01:00
Isaac Wolkerstorfer 8ec6fb22fd Create alias dir on demand 2011-01-25 17:12:13 +01:00
Isaac Wolkerstorfer 3d0082fa60 Suppress unnecessary output 2011-01-24 17:11:46 +01:00
Isaac Wolkerstorfer 85566c9682 Merge curl/wget and version changes 2011-01-22 21:52:27 +01:00
Isaac Wolkerstorfer c060a287d0 Use curl or wget, whichever is available
Also spit out an error message if we have neither.
2011-01-22 21:07:27 +01:00
Isaac Wolkerstorfer 590b283e65 Change version() to nvm_version()
It's a bit less conflict-y
2011-01-22 20:54:15 +01:00
Isaac Wolkerstorfer a7328b3711 Add output to sync if stable/latest changes 2011-01-22 19:31:20 +01:00
Isaac Wolkerstorfer 861766372d Add a special "default" alias
If you set a "default" alias, it will automatically be loaded when you
start a new shell.
2011-01-22 19:16:24 +01:00
Isaac Wolkerstorfer f10ac8e8c3 Fix README for ls command 2011-01-22 19:13:02 +01:00
Isaac Wolkerstorfer a77c632e2a Add aliases to versions
Aliases are stored as plaintext files in the $NVM_DIR/alias dir.
They may store either an explicit version (v0.3.6) or an implied version
("latest"). The latter is a "moving target", and thus possibly
dangerous, but can be useful, too.
2011-01-22 19:12:13 +01:00
Isaac Wolkerstorfer 0f6680e8b7 Use version descriptors for 'install' and 'use'
Allows things like "nvm install latest" or "nvm use stable" or "nvm use 0.2"
2011-01-22 17:57:08 +01:00