Andrew Crites
0e1f2408c9
Only list extant explicit version
11 years ago
Jordan Harband
578a601b27
Filter out of `nvm ls` things that start with a dot. Fixes #421 , closes #422 .
11 years ago
Jordan Harband
db8acf11fd
v0.7.0
11 years ago
Jordan Harband
a6be718387
Fixing --version output format.
11 years ago
Koen Punt
f6ba08253b
utility method for append path, fixes #414
11 years ago
Koen Punt
e3b84499c2
use regex triplet, add unit test
11 years ago
Koen Punt
b313f62749
Use sed -e instead of -E
11 years ago
Jordan Harband
ba1be9b4ea
Making `nvm install` use the version, even if it's already installed. Fixes #410
11 years ago
Koen Punt
652a9ef9b5
always apply path stripping
11 years ago
Koen Punt
0d81a219ae
add quotes
11 years ago
Koen Punt
d6e457354f
use nvm_strip_path utility method for path stripping
11 years ago
Koen Punt
6668dc5c47
remove parentheses
11 years ago
Koen Punt
3d9c1d7852
use sed for *PATH stripping
11 years ago
Jordan Harband
29f582611b
v0.6.1
11 years ago
Jordan Harband
673cda56c4
Adding a test for `nvm install invalid` behavior, and correcting the message.
...
From f00d688c87 (commitcomment-6205164)
11 years ago
Jordan Harband
e562a5645b
v0.6.0
11 years ago
Jordan Harband
f00d688c87
Nicer failure message when trying to install an invalid version. Fixes #285 .
11 years ago
Jordan Harband
4a7275a0c6
Ensuring paths are in quotes, to preserve spaces.
11 years ago
Jordan Harband
87516039a8
Using portable conditional syntax.
11 years ago
Koen Punt
80e349edb1
locate .nvmrc without `find`
...
instead of using find and actually cd'ing into directories
we're now using simple string replacement on the `pwd`
11 years ago
Jordan Harband
038c1f3d0f
Find `.nvmrc` files upwards.
11 years ago
Jordan Harband
66455f7c77
Refactor so "finding .nvmrc" can be done in a bash function.
11 years ago
Jordan Harband
222250f2d1
v0.5.1
11 years ago
Jordan Harband
e6bd207624
When auto-printing "help" on a command other than "help", return a nonzero exit code.
11 years ago
Jordan Harband
bad79e6d77
v0.5.0
11 years ago
Jordan Harband
20953ab04c
Make sure `nvm run` works without a version argument when .nvmrc specifies a version.
11 years ago
Jordan Harband
bf8abf1052
Make sure `nvm install` works without a version argument when .nvmrc specifies a version.
11 years ago
Jordan Harband
c188c1b11a
Correcting help text for `nvm use`
11 years ago
Jordan Harband
752c0e4ef1
Removing trailing whitespace.
11 years ago
Jordan Harband
6dde4aac38
v0.4.0
11 years ago
Koen Punt
744507b83e
added nvm unload method to remove nvm from shell
11 years ago
Koen Punt
ec7909dcd3
Use NVM_ prefix for variables
11 years ago
Jordan Harband
cebda7d35a
When curl is not present, immediately bail out of `nvm install` with a nonzero exit code. Fixes #385 .
11 years ago
Koen Punt
4a9a15c404
Fix NVM_DIR discovery
11 years ago
Jordan Harband
31c5406780
Adding an `nvm --version` command
11 years ago
Koen Punt
a34c080d77
Fix nvm ls for v* numbers
...
Previously calling nvm ls with v* number (nvm ls v0.2)
would not return any results.
So now the v is prepended if its not already there
11 years ago
Koen Punt
e30424d22f
define all functions with nvm_ prefix
11 years ago
Koen Punt
1d40a5bc8b
Replaced echo for printf when using formatted strings
...
Updated version list, now also compatible with zsh
11 years ago
messju mohr
f82f38be90
fixed nvm_version result when multiple versions match the given pattern
11 years ago
Koen Punt
1a19de9d20
Use has util method and use comparison opts
11 years ago
Jordan Harband
618a372f38
Unset the executable bit on nvm.sh, since it's meant to be sourced
11 years ago
Daniel Teixeira
8cceae3cc1
Overwritting GREP_OPTIONS on local script
...
(recommiting to automerge into current master)
11 years ago
Fraser Tweedale
3b21b76106
fix install from source on FreeBSD 10
...
Compile with CXX=c++ on FreeBSD, as FreeBSD >= 10.0 no longer has
GCC in the base system (c++ is hardlinked to clang++ on FreeBSD 10.0
and g++ on FreeBSD < 10).
11 years ago
Fraser Tweedale
dcba513108
address remaining comments from #363
11 years ago
Fraser Tweedale
e6a5374bfb
colorize output only if echo supports it
11 years ago
Fraser Tweedale
8cba9c5781
avoid nullglob in alias command
11 years ago
Fraser Tweedale
1d6145de5a
fix explicit version matching on FreeBSD
...
FreeBSD's regular expression library does not like the pattern used
for matching explicit version strings in `nvm_ls`. Change the
pattern to something more specific that works on FreeBSD.
11 years ago
Fraser Tweedale
ca0c8a7f1d
handle echo implementations that do not support `-e`
11 years ago
Fraser Tweedale
a3331ffdb0
fix errors due to use of unportable == operator
...
The `==` operator is not defined by POSIX and many test(1) (also
spelled `[`) implementations do not support it. Replace uses of
`==` with the POSIX-conformant `=` equality operator.
11 years ago
Fraser Tweedale
4a5f5203d0
fix errors and portability issues in expr commands
...
Add double-quotes around all expr(1) left-hand-sides where the
argument is just a variable, to prevent syntax errors when the
variable is empty.
Also avoid the `expr match ...` variant as this is not defined in
POSIX and causes errors in some implementations, including
FreeBSD's.
11 years ago