Jordan Harband
87f37909f2
[meta] add CODE_OF_CONDUCT.md
4 years ago
nmarghetti
7f6c0c053a
[Refactor] add `nvm_install_binary_extract`
4 years ago
nmarghetti
d396181ffb
[Refactor] add `nvm_get_artifact_compression`
4 years ago
shiyutim
a5742d4e9e
[readme] add install error tips
4 years ago
David Zulaica
d5c1441a83
[readme] Update M1 macOS troubleshooting instructions
4 years ago
Arshath
0fad5ec575
[readme] quote asterisk in shell command on `--latest-npm` example
4 years ago
Jordan Harband
0d14d7f6b7
[Dev Deps] update `doctoc`, `replace`, `semver`
4 years ago
Jordan Harband
4c11ab1ac6
[actions] update workflows
4 years ago
Matt Calthrop
49e806c77a
[readme] Add macOS troubleshooting instructions for M1 chip
4 years ago
Brandon L. Reiss
3243f7a082
[Fix] Fix potential unbound var error on nvm install
...
Fixes #2420 . When using `nvm install` with an already installed
version, Bash (and potentially other shells) may emit an unbound
variable error when `set -u` is set. The presence of the error depends
on specific shell versions, but appears to happen in MacOS 11.1 (Big
Sur) using a recent Bash version installed via Homebrew (as of this
writing).
The fix accesses `ALIAS` correctly for the case where it is not set by
an `alias` option to `nvm install`.
4 years ago
Jordan Harband
015623ee6d
[Fix] avoid parse error with common omz global aliases, in `nvm_print_color_code`
...
Merge pull request #2365 from hosamaly/patch-1
4 years ago
nmarghetti
502089ae30
[New] install script: Allow installation from other repository also for git method
4 years ago
nmarghetti
589c2377fb
[Fix] install script: sync `nvm_download` implementation from nvm.sh
4 years ago
nmarghetti
60e78d3ec1
[Tests] Add unit test for nvm_download
4 years ago
nmarghetti
9f3397afa4
[Tests] add `nvm_grep` to install script, fix tests
4 years ago
Jordan Harband
436cda247e
[Fix] remove `nvm_supports_source_options`
...
Fixes #2387
4 years ago
nmarghetti
9849bf494d
[meta] Rename some files to be more cross platform
4 years ago
nmarghetti
4e9df33cb7
[New] install script: Allow installation from other repository
4 years ago
hjoshi123
f3fa157456
[Fix] `bash_completion`: move compinit before bashcompinit
4 years ago
hjoshi123
6982dee071
[Docs]: Updated README.md to include homebrew unsecure dirs warning
...
Closes #2361 .
4 years ago
Hosam Aly
31c5c5c45a
[Fix] avoid parse error with common omz global aliases, in `nvm_print_color_code`
...
Fixes #2362 . Fixes #2372 .
4 years ago
Dena Burd
2fea55fdb5
[Tests] add test that fails without fix for #2362
4 years ago
Shiming
10399ed1bd
[Docs] source `./nvm.sh` instead of `nvm.sh`, for `zsh`
...
Fixes #2204 .
5 years ago
Jordan Harband
3c079f16c7
[shellcheck] fix silly shellcheck complaint
4 years ago
Jordan Harband
e76b2945c5
[Fix] relax `$PREFIX` checking, to accomodate `npm exec`
...
Fixes #2379 .
4 years ago
Rui Chen
e48cb858a6
[Tests] `.npm` is now cached by default
5 years ago
Keith Lazuka
86708833c9
[Fix] Use local variable when looping over args
...
When the `nvm` function is called by a script which itself uses a variable
named `i`, `nvm` clobbers the caller's variable. This happens even if the
caller has declared its variable as local.
See note 1 on https://tldp.org/LDP/abs/html/localvar.html#FTN.AEN18568
4 years ago
David Moles
d4eba354b5
[Fix] `install`: Ignore npm command under $NVM_DIR when checking for global modules
4 years ago
Jordan Harband
ed321f1df0
[Tests] `release`: clobber local tags
4 years ago
Jordan Harband
4b947ec92d
v0.37.2
4 years ago
Jordan Harband
3b57dfec8d
Revert "[Fix] `nvm_die_on_prefix`: only grep lines starting with env var name" ( #2347 )
...
This reverts commit 21c0c05130
.
Fixes #2360 . Fixes #2364 . Fixes #2366 .
4 years ago
Jordan Harband
661a702cdd
v0.37.1
4 years ago
Jordan Harband
510b2fd44c
[Tests] fix eclint errors
4 years ago
Jordan Harband
80a4e06af9
[Tests] partially migrate to Github Actions
4 years ago
Alex Aubuchon
22902f04a3
[actions] Add release test workflow
4 years ago
Dena Burd
6848c16d53
[New] Added `set-colors` command. See details below:
...
This command allows users to replace default colors with their own custom colors.
- top-level commands modified: alias, ls, ls-remote
- helper functions added: nvm_echo_with_colors, nvm_err_with_colors,
nvm_set_colors, nvm_get_colors, nvm_print_color_code
- functions modified: nvm_print_formatted_alias, nvm_print_versions, nvm_print_alias_path (implicitly), nvm_print_default_alias (implicitly), nvm_list_aliases (implicitly)
We added tests and info on using this command to the README!
Co-authored-by: Dena Burd <29719099+gitburd@users.noreply.github.com>
Co-authored-by: Naomi Quinones <52065567+naomiquinones@users.noreply.github.com>
5 years ago
Alex Aubuchon
3abb98124e
[actions] Add shellcheck workflow
...
Co-authored-by: Alex Aubuchon <alex@aub.dev>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
4 years ago
Matteo De Wint
21c0c05130
[Fix] `nvm_die_on_prefix`: only grep lines starting with env var name
4 years ago
Alex Aubuchon
00af6341f7
[Tests] Run fast test suite in clean environment
4 years ago
Jordan Harband
11a9d22607
[actions] add "Allow Edits" workflow
4 years ago
Jordan Harband
bbe032fa7e
[actions] switch Automatic Rebase workflow to `pull_request_target` event
4 years ago
Jordan Harband
4054bd70ce
v0.37.0
4 years ago
Jordan Harband
499d303746
[Perf] `use`/`nvm_die_on_prefix`: replicate npm config algorithm and remove `npm config` call
5 years ago
Peter Dave Hello
31bc0a13c2
[Dockerfile] Clean up dated comment
4 years ago
Dena Burd
c72f2c6f21
[Fix] `nvm ls-remote`: accept versions that end with a dot
...
Fixes #983 .
4 years ago
Alex Aubuchon
f2c5ce459a
[Tests] Fix nvm unload fast test cleanup
4 years ago
Jordan Harband
0f0d5e8270
[dev deps] alphabetize dependencies
4 years ago
Alex Aubuchon
e77ed07ccc
[Tests] Fix `nvm_ls_current` fast test
4 years ago
Dylan Armstrong
e01060fa2c
[Fix] `nvm_die_on_prefix`: use directory comparison rather than string
4 years ago
Dylan Armstrong
96069da0d5
[Fix] `nvm_ls`: zsh: unset `markdirs` and `local_options`
...
Fixes #2315 .
4 years ago