Jordan Harband
cb326cb19d
For now, keep the grep to do proper filtering
9 years ago
Jordan Harband
01c8b04fd5
Format LTS version when present.
9 years ago
Jordan Harband
865d2fe3d6
Include LTS version in `nvm_ls_remote` output.
9 years ago
Jordan Harband
9d8841a46c
Ensure only the version string is printed out in relevant places.
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
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
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
Jordan Harband
4842641e78
[Refactor] create `nvm_echo` and `nvm_err`
9 years ago
Jordan Harband
62cca4e6d8
Prefer `nvm --help` over `nvm help`
9 years ago
Jordan Harband
ab49a5b0c3
[refactor] `nvm run`: call through to `nvm exec` to remove redundant code
9 years ago
Jordan Harband
a69f9a8898
[fix] `nvm run`: pass through `--silent` on bare `nvm run`
9 years ago
Jordan Harband
e8355e3189
[refactor] `nvm run`: refactor argument parsing.
9 years ago
Jordan Harband
0d62626ac6
[refactor] `nvm exec`: refactor argument parsing.
9 years ago
Jordan Harband
6fb94e0dab
[fix] `nvm exec`: show “io.js” for io.js versions.
9 years ago
Jordan Harband
0dd2846215
[fix] `set -e`: ensure `nvm_version` returning 3, and `nvm_alias` returning 2, doesn’t terminate the process.
9 years ago
Jordan Harband
1c3f8da6c3
`nvm alias`: factor out alias creation to `nvm_make_alias`
9 years ago
Jordan Harband
d705ec7ebf
[refactor] run through shellcheck
9 years ago
Jordan Harband
09f86b0e6e
[Refactor] Create and use `nvm_is_version_installed`
9 years ago
Jordan Harband
fc68e615b2
`nvm alias`: colorize output to match `nvm ls`
9 years ago
Jordan Harband
677c69dda0
`nvm alias`: explicitly forbid user aliases in subdirs.
9 years ago