Jordan Harband
4aa6902dbe
[Refactor] `nvm_install_merged_node_binary`: reduce nesting, fix var curlies.
9 years ago
Jordan Harband
0678652bd3
[New] `nvm ls`/`nvm ls-remote`/`nvm alias`: add `--no-colors`
9 years ago
Jordan Harband
206878460c
[Refactor] always shift first argument to `nvm`
9 years ago
Jordan Harband
79270a579c
[Refactor] create `nvm_list_aliases`
9 years ago
Jordan Harband
b6eb565ea1
[Refactor] `nvm alias`: reorganize so alias listing is done last
9 years ago
Jordan Harband
091c64c7c5
[Refactor] `nvm alias`: add in `--`-based argument support.
9 years ago
Jordan Harband
21b8f556b2
[Refactor] `nvm alias`: use named vars instead of positional args.
9 years ago
Jordan Harband
a3bc4d3e62
[Refactor] `nvm alias`: shift out the “alias”
9 years ago
Jordan Harband
150ed490d0
[Refactor] use curlies with variables
9 years ago
Jordan Harband
f9f140ec13
[Performance] make auto-using faster.
...
Per https://github.com/creationix/nvm/issues/539#issuecomment-236830764
9 years ago
Jordan Harband
31e58d1827
v0.31.4
9 years ago
Julien Gilli
a32b914bab
Fix nvm on SmartOS setups using 64 bits pkgsrc repository
...
On SmartOS setups using 64 bits pkgsrc repositories, `nvm_get_arch`
would not handle pkg_info's output properly.
This would result in nvm not being to install any node binary when
running on SmartOS setups using a 64 bits pkgsrc repository.
This change fixes this problem, and fixes the tests suite on similar
setups.
9 years ago
Sebastian Thomschke
f4d57cc17d
Fix for #871 find: warning: Unix filenames usually don't contain slashes
9 years ago
Jordan Harband
56417f88f9
v0.31.3
9 years ago
Jordan Harband
ecbd7d4572
[Tests] use `-ex` option during tests when possible
...
Relates to #1130
9 years ago
Jordan Harband
803adac676
[Fix] ensure proper checking of the “shwordsplit” zsh option.
9 years ago
Jordan Harband
78a008c3c7
[Fix] use Solaris-compatible tail options.
...
Fixes #1148 .
9 years ago
(Soreλ\a)
0f26656c2c
npm -> nvm, and minor formatting issues
9 years ago
(Soreλ\a)
79d62fb16d
Improve error messages for missing versions
...
`nvm use`, `nvm run` and others check if the version is installed before executing Node, but the error message could be clearer on what steps the user has to take to achieve what they want, this makes that clearer.
9 years ago
Jordan Harband
42fedf6bc9
[Tests] add some basic `nvm use --lts` tests
9 years ago
Peter Dave Hello
07bb79f405
Use `case` instead of multiple if/else statement.
9 years ago
Jordan Harband
c4be39b8be
[Fix] remove the need for `sed -E`
...
Fixes #1126
9 years ago
Jordan Harband
bcb1f0b1c7
`nvm ls-remote`: skip io.js lookup when LTS is set.
9 years ago
Jordan Harband
c3b16603c0
`nvm uninstall`: add `--lts` support
9 years ago
Jordan Harband
e1fdd316b7
[Refactor] create `nvm_grep` and remove standalone `GREP_OPTIONS` line.
9 years ago
Jordan Harband
9f5322ee84
v0.31.2
9 years ago
Jordan Harband
b0244a133b
[Fix] `nvm ls`: avoid use of `maxdepth` which is not on Solaris/SmartOS
...
Fixes #1121 .
9 years ago
Jordan Harband
36b1ea9236
[Fix] do not print help text on sourcing when an empty .nvmrc file is found.
...
Fixes #1113 .
9 years ago
Jordan Harband
45ae48df2d
[Fix] `nvm install -s`: when “core id” doesn’t appear in /proc/cpuinfo, fall back to counting “processor” lines.
...
Fixes #1115 .
9 years ago
ra100
b6481583af
On aarch64 use arm64 packages
9 years ago
Jordan Harband
03cf6950ce
[shellcheck] remove use of `expr`
9 years ago
Jordan Harband
251a2f3409
[Fix] ensure `uname` is unaliased.
...
Closes #1105
9 years ago
Stephan DONIN
f62747c29c
[Fix] `set -u`: is variable set test
9 years ago
Jordan Harband
ccde2898f8
[help] Add `nvm ls-remote <version>`.
...
Fixes #1094 .
9 years ago
Jordan Harband
6e18d959c7
[shellcheck] clean up unquoted args etc
9 years ago
Jordan Harband
6dd6a0d213
[Fix] `dash` does not support string substitution :-(
9 years ago
Jordan Harband
36c65d7115
[shellcheck] add spellcheck override comments
9 years ago
Jordan Harband
ec2f450b6e
v0.31.1
9 years ago
Jordan Harband
eeaddf9ab0
Don’t restrict colors to TTYs.
...
This restriction prevents subcommands from producing colors and passing them up the tree to the actual TTY.
9 years ago
Jordan Harband
0880539972
`nvm_strip_path`: Error out when `$NVM_DIR` is not set.
...
Per https://github.com/creationix/nvm/issues/1083#issuecomment-217752185
9 years ago
Jordan Harband
6311a0e9c4
`nvm ls`/`nvm alias`/`nvm ls-remote`: only colorize when colors are supported.
9 years ago
Jordan Harband
bc3d028152
`nvm alias`: colorize output when creating aliases.
9 years ago
Jordan Harband
fc82742a8b
[Robustness] add a missing `command` to a `sed` call
9 years ago
Jordan Harband
a94ade8ec2
[Fix] don’t use bash `==` in conditionals
9 years ago
Jordan Harband
eb329ae7a9
[minor] display `chmod` command as well to fix file permissions.
9 years ago
Jordan Harband
1ca2aa648f
[minor] Echo nonwritable file path to stderr.
9 years ago
Jordan Harband
f49eb61f8e
[Improvement] Use `nvm_sanitize_path` in `nvm_check_file_permissions`.
9 years ago
Jordan Harband
d1962c6742
[Refactor] clean up `nvm_sanitize_path`
9 years ago
Jordan Harband
06c1cfcd85
[Refactor] avoid some pipes to `awk`
9 years ago
Jordan Harband
8a138d98ed
[Refactor] Use `awk` to improve version comparison performance
9 years ago