Peter Dave Hello and Jordan Harband
29a652f90f
[patch] show system Node.js version in nvm ls
...
Normalize `nvm_version` output when `nvm_ls` returns "system vX" so alias and .nvmrc resolutions treat system correctly.
Add fast tests for system alias behavior in `nvm ls`, `nvm use`, and `nvm which`.
2026-01-25 18:19:50 +08:00
Peter Dave Hello and Jordan Harband
4d98875a3a
Migrate GitHub Copilot instructions to AGENTS.md and CLAUDE.md
...
Move .github/copilot-instructions.md to AGENTS.md, and generalize the
wording, so it will apply to Codex CLI, Cursor, OpenCode, RooCode, and
many other AI coding agents.
Also add CLAUDE.md as a symlink to AGENTS.md so Claude Code reads the
same guidance.
Copilot coding agent now supports AGENTS.md custom instructions, as
more coding agents support it. Migrating from GitHub Copilot's custom
instructions file to AGENTS.md will help developers leverage more and
different coding agents than just GitHub Copilot.
Reference:
- https://agents.md/
- https://github.blog/changelog/2025-08-28-copilot-coding-agent-now-supports-agents-md-custom-instructions/
2025-09-12 00:05:38 +08:00
Peter Dave Hello and Jordan Harband
d4a733e4d8
[Dockerfile] Remove apt src disabling, no longer needed
2023-09-19 20:03:01 +08:00
Peter Dave Hello and Jordan Harband
44e1d9c911
[Dockerfile] Update base image from Ubuntu 20.04 to 22.04, cc #2877
2023-04-06 01:22:10 +08:00
Peter Dave Hello and Jordan Harband
766341fca1
[readme] Update Travis CI badge and link url
...
travis-ci.org is deprecated and replaced by app.travis-ci.com for a while
2023-04-03 22:50:48 +08:00
Peter Dave Hello and Jordan Harband
b133f6619d
[Dockerfile] Update base image from Ubuntu 18.04 to 20.04, cc #2877
2022-09-07 16:36:29 +08:00
Peter Dave Hello and Jordan Harband
7b530edd3a
[Docs] Use absolute URL for #606 in README.md
...
Since markdown-link-check hasn't support relative links, to make the
test passed, move this link to use absolute URL so that we can introduce
the new test. cc tcort/markdown-link-check#10
2017-11-05 04:07:37 +08:00
Peter Dave Hello and Jordan Harband
1afd4f3566
[Tests] Add markdown-link-check script
...
This uses the npm package `markdown-link-check` to check if all the links in the documentation are alive.
2017-11-05 04:06:36 +08:00
Peter Dave Hello and Jordan Harband
7bbc57355d
[Tests] Print shell version in Travis CI
2017-04-02 07:33:49 +08:00
Peter Dave Hello
678a827978
[Dockerfile] Update dated base image from Ubuntu 16.04 to 18.04
2021-08-31 02:03:30 +08:00
Peter Dave Hello
31bc0a13c2
[Dockerfile] Clean up dated comment
2020-11-03 17:19:03 +08:00
Peter Dave Hello and Jordan Harband
4436638816
[Tests] Drop deprecated sudo: option in TravisCI config
...
That config was deprecated for a while, reference:
- https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures
2020-09-21 20:28:09 +08:00
Peter Dave Hello and Jordan Harband
6110d31969
[dockerfile] Add missing apt pacakge locales
...
locale-gen command seems missing since uncertain point for a while:
```
Step 15/33 : RUN locale-gen en_US.UTF-8
---> Running in fae073c89c01
/bin/bash: locale-gen: command not found
The command '/bin/bash -o pipefail -c locale-gen en_US.UTF-8' returned
a non-zero code: 127
```
This patch should fix the Docker image build
2020-09-21 18:20:50 +08:00
Peter Dave Hello and Jordan Harband
68d2f47c0a
[dockerfile] Update ShellCheck download URL in Dockerfile
...
see koalaman/shellcheck#1871
2020-09-21 09:36:30 +08:00
Peter Dave Hello and Jordan Harband
68d331a816
[dockerfile] Remove ShellCheck Segmentation fault workaround
...
The workaround came from this GitHub issue comment:
https://github.com/koalaman/shellcheck/issues/1053#issuecomment-357816927
Looks like the problem doesn't exist any more:
```
.
.
.
Step 14/33 : RUN shellcheck -V
---> Running in 4b7a718c1cbf
ShellCheck - shell script analysis tool
version: 0.7.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
.
.
.
```
The workaround should be removed so that the Dockerfile will be easier
to be understand and read.
2020-09-21 02:47:57 +08:00
Peter Dave Hello and Jordan Harband
bac5393e12
[Docs] Syntax highlight for Ansible task example in README.md
2020-05-29 21:01:47 +08:00
Peter Dave Hello and Jordan Harband
73438e339e
Update Dockerfile base image to Ubuntu 16.04, cc #2008
2020-03-30 02:17:28 +08:00
Peter Dave Hello and Jordan Harband
cc0750eb5d
[Fix] install: Add missing io.js installation message
...
Fixes #1988
2019-01-22 15:46:29 +08:00
Peter Dave Hello and Jordan Harband
7e715d5c73
[Tests] Improve syntax in "test/installation_iojs/nvm install v1 works"
2019-01-23 03:10:03 +08:00
Peter Dave Hello and Jordan Harband
10f24d6d4b
[Refactor] nvm.sh: make coding style more consistent
2018-05-22 20:57:40 +08:00
Peter Dave Hello and Jordan Harband
e367533eb8
[Refactor] Reduce one more sed & pipe to speedup
2017-03-28 23:15:35 +08:00
Peter Dave Hello
6534568745
[Fix] Enhance nvm debug for different environments
2019-01-12 14:17:01 +08:00
Peter Dave Hello and Jordan Harband
206d503a21
[Docs] Improve indent of output block in GitHub Issue template
2018-12-26 03:46:13 +08:00
Peter Dave Hello and Jordan Harband
14179bc8ce
[shellcheck] Use -n/-z instead of ! -z/! -n condition
...
https://github.com/koalaman/shellcheck/wiki/SC2236
2018-12-03 13:59:19 +08:00
Peter Dave Hello
22d32bede0
[New] Enable ccache on Travis CI to speed up compilation
2018-11-22 13:58:26 +08:00
Peter Dave Hello and Jordan Harband
f3fd5eff46
[Docs] Improve md file syntax
...
- Lists should be surrounded by blank lines
- Use only `1.` for ordered list item prefix
- Starting bulleted lists at the beginning of the line
- Fenced code blocks should be surrounded by blank lines
2018-07-15 02:26:05 +08:00
Peter Dave Hello
4bd99bcfa2
[Dockerfile] Refactor to prevent using sudo during build
...
`sudo` may lead to unpredictable behavior in some cases, and we don't
really need to use `sudo` to reach what we need.
2018-07-12 18:38:15 +08:00
Peter Dave Hello
5f9ccaada0
[Dockerfile] Set the SHELL to bash with pipefail option
2018-07-12 18:38:15 +08:00
Peter Dave Hello
7ff20855a2
[Tests] Integrate dockerfile_lint to test Dockerfile
2018-07-12 18:38:14 +08:00
Peter Dave Hello
cdde74a55d
[Dockerfile] install missing eclint package
2018-07-12 18:37:40 +08:00
Peter Dave Hello
04b35b5440
[Dockerfile] Use arguments JSON notation for ENTRYPOINT
2018-07-11 15:17:27 +08:00
Peter Dave Hello
aacb0b9b97
[Dockerfile] Fix command From to be FROM
2018-07-11 15:17:27 +08:00
Peter Dave Hello
f121e5ace0
[Dockerfile] Add missing quotes for variables
2018-07-11 15:17:18 +08:00
Peter Dave Hello
af8038ffec
[Dockerfile] Update ShellCheck version to v0.5.0
2018-07-11 15:14:00 +08:00
Peter Dave Hello
265ec90532
[Dockerfile] Add missing name & version LABEL
2018-07-11 15:14:00 +08:00
Peter Dave Hello
e2195b4c35
[Dockerfile] Use LABEL instead of deprecated MAINTAINER command
2018-07-11 15:13:57 +08:00
Peter Dave Hello and Jordan Harband
62ee7cf998
[Refactor] bash_completion: Improve coding style
2018-05-21 19:59:01 +08:00
Peter Dave Hello and Jordan Harband
113d807e5a
[New] Support --no-progress for nvm install
...
Closes #1079 .
2017-03-10 01:07:16 +08:00
Peter Dave Hello and Jordan Harband
d5dacdf80f
[Fix] nvm debug: Fix sed syntax error in nvm_command_info()
2018-04-17 18:09:47 +08:00
Peter Dave Hello
d3a9272a0c
[Refactor] Speedup nvm_list_aliases()
2018-04-18 17:03:47 +08:00
Peter Dave Hello and Jordan Harband
d9dc8464fd
[Doc] Add macOS install script note about Git
...
Closes #1782
2018-04-13 01:14:39 +08:00
Peter Dave Hello and Jordan Harband
685312d600
[Fix] Remove $NVM_DIR trailing slash automatically, fix #1708
2018-04-12 14:14:58 +08:00
Peter Dave Hello and Jordan Harband
0731003cfe
[New] Integrate eclint to test partial coding style
2018-02-26 02:29:38 +08:00
Peter Dave Hello and Jordan Harband
ca66a13710
nvm debug: Improve OS version detection
2018-02-24 02:53:40 +08:00
Peter Dave Hello and Jordan Harband
8ff437ae51
[Doc] Fix manual install & upgrade guide, fix #1772
2018-04-12 23:58:30 +08:00
Peter Dave Hello
b15709e637
Turn off wget's output in nvm_get_latest()
...
curl output is turned off by `-s` in the same place, we should unify the
behavior on wget, also, this help removes those wget outputs that can't
fit our coding style tests. cc #1739
2018-04-12 23:44:27 +08:00
Peter Dave Hello and Jordan Harband
37e0977e60
install.sh: Improve install.sh prompt output, add a newline
2018-04-10 15:53:33 +08:00
Peter Dave Hello and Jordan Harband
2850e65b62
[Docs] Fix some typos
2018-03-03 21:18:42 +08:00
Peter Dave Hello and Jordan Harband
d6fa67166c
[Fix] reinstall-packages: Prevent install/link when no packages found
...
Fixes #1744 .
2018-02-27 14:05:33 +08:00
Peter Dave Hello
25b7f264d5
[Fix] Use nvm_echo instead of echo directly
2018-02-28 02:16:24 +08:00
Peter Dave Hello and Jordan Harband
750571056c
[Fix] Correct most of the wrong indentation
2018-02-26 02:20:21 +08:00
Peter Dave Hello and Jordan Harband
544c3f4caa
[New] Add EditorConfig to help maintain part of coding style
2018-02-21 01:26:02 +08:00
Peter Dave Hello and Jordan Harband
e7b42198b4
[Fix] Improve .nvmrc reading process
...
Fixes #1015 . Fixes #1712 .
2018-02-20 03:34:43 +08:00
Peter Dave Hello and Jordan Harband
5f53caadad
[Refactor] Use grep -q parameter instead of redirect to /dev/null
2018-02-03 11:29:31 +08:00
Peter Dave Hello and Jordan Harband
9c42470347
[New] Add "$PATH" to nvm debug output
2018-02-06 08:17:20 +08:00
Peter Dave Hello
9f34b3e95c
Remove trailing space
2018-02-26 01:03:01 +08:00
Peter Dave Hello
41ec44f6b5
Add missing final newline in test script
2018-02-26 01:02:41 +08:00
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
2018-02-26 01:01:30 +08:00
Peter Dave Hello and Jordan Harband
f3076d14c9
[Fix] Add missing "command" prefixes for few commands
2018-02-20 04:05:47 +08:00
Peter Dave Hello
bb803492d8
Remove duplicate code in nvm_npm_global_modules()
...
No matter what's the result of the condition here, the path is the same.
2018-02-22 09:43:09 +08:00
Peter Dave Hello and Jordan Harband
f290ccf1d5
[Fix] Add missing "command" prefix for "tr", fix #1725
2018-02-19 13:59:26 +08:00
Peter Dave Hello
225e447b54
[Doc] Update Docker image build info in README.md
2018-02-19 00:27:04 +08:00
Peter Dave Hello and Jordan Harband
77da9f5a6d
Optimize ShellCheck installation in Docker image
...
Use pre-built static release binary instead of building ShellCheck from
the source code, this change would save disk space, time, and much
computing resources.
2018-01-18 00:33:41 +08:00
Peter Dave Hello and Jordan Harband
3ed47431f8
[New] Print $SHLVL in nvm debug
2017-11-05 03:25:04 +08:00
Peter Dave Hello and Jordan Harband
aad269d224
Display FreeBSD and SunOS with correct caps
2018-02-12 02:15:01 +08:00
Peter Dave Hello and Jordan Harband
a23f7169a6
[Fix] Correct nvm.sh indent
2018-01-26 11:30:57 +08:00
Peter Dave Hello
2a8a81da94
[Fix] ShellCheck SC1117 in nvm.sh & install.sh
2017-12-14 03:26:17 +08:00
Peter Dave Hello
fce7f4ed13
[Fix] Disable ShellCheck SC2207 in bash_completion line 14
2017-12-14 02:11:50 +08:00
Peter Dave Hello
9c25a8f316
[Cleanup] Remove ghc related things in .travis.yml, cc #1619
2017-10-22 00:42:07 +08:00
Peter Dave Hello
a461a0fffc
[Fix] install.sh shouldn't use not existed $NVM_PROFILE
2017-10-04 10:10:47 +08:00
Peter Dave Hello
73ad812215
Remove the manual ShellCheck install proecss on Travis CI
2017-09-29 00:22:43 +08:00
Peter Dave Hello
d535c97d0f
Enhance nvm debug with more tools info
2017-09-21 22:09:15 +08:00
Peter Dave Hello and Jordan Harband
7753b24948
[Docs] Update README.md for Alpine linux reference
...
Add 4 packages as Alpine Linux wiki suggested:
(grep util-linux binutils findutils)
https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working
2017-09-07 18:00:08 +08:00
Peter Dave Hello and Jordan Harband
248706d5f8
[New] Clean up git reflog history before git gc
2017-07-14 00:37:58 +08:00
Peter Dave Hello
ab591b07ef
[New] Print $TERM_PROGRAM in nvm debug if it exists
2017-07-14 01:48:27 +08:00
Peter Dave Hello and Jordan Harband
38a568c9c9
[New] Add --auto to git gc to speed up install & upgrade
2017-07-11 09:19:02 +08:00
Peter Dave Hello and Jordan Harband
f37ddea78f
[Docs] Fix typos in Docker instructions
2017-07-08 18:50:06 +08:00
Peter Dave Hello and Jordan Harband
1e69c4c77d
[New] Speedup process to install nvm from git by dropping commit history
2017-04-02 15:49:01 +08:00
Peter Dave Hello and Jordan Harband
3ac49e5ef1
[New] Introduce Docker environment for nvm
2017-04-02 08:03:32 +08:00
Peter Dave Hello
0356839d05
[Fix] Adjust $CURL_COMPRESSED_FLAG usage for curl, fix #1562
2017-06-27 15:04:28 +08:00
Peter Dave Hello and Jordan Harband
b5034bb2b2
[bash completion] add missing install-latest-npm; remove undocumented clear-cache
2017-06-23 14:21:10 +08:00
Peter Dave Hello
11370fe823
[Fix] curl should fail if something wrong, fix #1556
2017-06-14 10:58:38 +08:00
Peter Dave Hello
c3c2d350e9
[Tests] Fix cache for WITHOUT_CURL tests in Travis
2017-05-19 13:58:14 +08:00
Peter Dave Hello
f38d21c529
[Docs] Improve "Problems" README section readability
2017-04-13 17:56:46 +08:00
Peter Dave Hello and Jordan Harband
7aa3448259
[Tests] Add curl back when WITHOUT_CURL test done since cache needs it
2017-04-09 13:13:25 +08:00
Peter Dave Hello and Jordan Harband
a66a9caa1c
[Tests] Use node v0.10.7 for thread para test as other install from src tests
2017-04-09 13:08:04 +08:00
Peter Dave Hello
229c7e6f0c
[Tests] Test "make release" in Travis CI
2017-04-09 15:16:13 +08:00
Peter Dave Hello
d80686c7cd
[Makefile] Introduce _ensure-current-version to ensure version tags
2017-04-09 15:09:31 +08:00
Peter Dave Hello
153f8e7b31
[Fix] To confirm curl exists before detecting curl libz feature
2017-04-09 13:44:07 +08:00
Peter Dave Hello and Jordan Harband
e87f395b7a
[Refactor] minor "if" and "return" improvement
2017-04-06 03:55:42 +08:00
Peter Dave Hello
2ec2d31012
[Tests] Re-enable WITHOUT_CURL tests
2017-04-06 14:52:26 +08:00
Peter Dave Hello and Jordan Harband
daa9c3604d
[Fix] To confirm curl exists before detecting curl libz feature
2017-04-06 05:20:55 +08:00
Peter Dave Hello and Jordan Harband
ec3ba1973a
[New] install.sh: Parallel script download jobs
2017-04-05 04:54:38 +08:00
Peter Dave Hello and Jordan Harband
c6866eeb37
[Test] "nvm alias" lts test bug fix
2017-04-02 14:34:04 +08:00
Peter Dave Hello and Jordan Harband
e84bcaabdc
[Refactor] Improve profile detection in install script
2017-04-03 23:06:04 +08:00
Peter Dave Hello and Jordan Harband
3f5fd57881
[Refactor] Reduce a sed command with pipe
2017-04-05 04:58:34 +08:00
Peter Dave Hello and Jordan Harband
f524bcb973
[Fix] Correct indent in install.sh
2017-04-05 05:01:54 +08:00
Peter Dave Hello
a0534b720a
[Tests] Reduce apt package dependencies calculation complexity
2017-04-02 16:48:28 +08:00
Peter Dave Hello
424056c839
[Tests] Remove ShellCheck manual dependency install under Ubuntu 14.04
2017-04-02 15:49:01 +08:00
Peter Dave Hello
18df8e3d2e
[Tests] Remove ppa source since we migrated to Ubuntu Trusty
2017-04-02 07:24:56 +08:00