Jordan Harband
4bdd57ba0f
[Fix] `install.sh`: when `NVM_INSTALL_GITHUB_REPO` is set, issue a warning
...
This should only annoy those testing their PRs; real users should never set this env var
2023-11-02 21:10:09 -07:00
Jordan Harband
55075db96d
[Tests] add some `nvm_do_install` tests
2022-12-27 22:57:07 -08:00
Jordan Harband
dc691121b8
[Tests] improve debug output on failure
2022-12-27 21:41:39 -08:00
Jordan Harband
788c0a425e
[meta] use HEAD instead of master where possible
2022-12-23 12:53:40 -08:00
Maxim Lepekha
7c929f8742
[Fix] `install.sh`: support `~/.zprofile`
2022-09-21 22:38:50 +02:00
Thomas Geirhovd
e98e9d9e4b
[Fix] `install`: Detect correct profile based on $SHELL var
2021-08-12 15:51:32 +02:00
Sladyn Nunes
2b5e53fcd5
[Fix] install script: check the proper version; fetch tags also
...
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2021-04-01 19:06:40 +05:30
nmarghetti
502089ae30
[New] install script: Allow installation from other repository also for git method
2021-01-14 00:10:19 +01:00
nmarghetti
60e78d3ec1
[Tests] Add unit test for nvm_download
2021-01-13 02:26:38 +01:00
nmarghetti
9f3397afa4
[Tests] add `nvm_grep` to install script, fix tests
2021-01-08 18:54:40 +01:00
nmarghetti
4e9df33cb7
[New] install script: Allow installation from other repository
2020-12-27 10:09:29 +01:00
David Moles
d4eba354b5
[Fix] `install`: Ignore npm command under $NVM_DIR when checking for global modules
2020-11-30 15:22:24 -08:00
Erik Lilja
8542df4ac5
[New] add support for `$XDG_CONFIG_HOME`
2018-08-14 21:45:40 +02:00
Spike Grobstein
9854928ba9
[New] `install.sh`: allow user to explicitly opt out of nvm adding the source string
...
this is done by checking if the user supplies `PROFILE=/dev/null` when running `install.sh`, the `nvm_detect_profile` function will not output any strings, causing `nvm_do_install` to skip adding `SOURCE_STR`.
2018-05-03 08:22:07 -07:00
Brian M. Jemilo II
68fe26a5e4
[Fix] Add autocompletion support to zsh
...
Fixes #1707 .
2018-04-09 14:54:28 -05:00
Peter Dave Hello
750571056c
[Fix] Correct most of the wrong indentation
2018-02-26 02:20:21 +08:00
Peter Dave Hello
9f34b3e95c
Remove trailing space
2018-02-26 01:03:01 +08:00
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
2018-02-26 01:01:30 +08:00
Yannick Ihmels
7ca8acc98d
[Docs] [Tests] Add escape sequences; add test for aliased `.`
2018-01-13 21:25:30 +01:00
Ahmad Magdy
bacdd95591
Update test/install_script/nvm_install_with_node_version to use nvm ls 8 instead of grep!
2017-11-30 15:33:01 +01:00
Ahmad Magdy
4b0563093c
Add test nvm_install_with_node_version under test/install_script
2017-11-30 15:23:37 +01:00
Peter Dave Hello
9593616b8c
[Fix] NVM_PROFILE bash/zsh detection in installation
2017-03-15 14:34:28 +08:00
Jordan Harband
6fc0241c21
[Fix] `install.sh`: only un-interpolate $HOME for the profile source string.
...
Fixes #1384 .
2017-02-12 00:32:49 -08:00
Ryan Wheale
1b2305232f
[install script] Use `$HOME` variable in `NVM_DIR`
2017-01-12 10:55:56 -07:00
Peter Dave Hello
f7763c8ba9
[Tests] die() in tests should quote "$@" for echo
2016-11-07 03:34:36 +08:00
Qiangjun Ran
cadbbced20
[Tests] Replace all dots with backslash dots
2016-11-03 23:44:59 -07:00
Jordan Harband
ecba036cbf
[Tests] show `type` output for debugging
2015-12-21 23:59:44 -08:00
Xavier Cambar
6cee20a071
testing NVM_DIR
2016-06-28 12:36:08 +02:00
Matthew Campbell
4f4ff208eb
Improve error messages
2016-01-02 11:16:50 -05:00
Matthew Campbell
78fee866f5
Remove usage of declare
2016-01-01 22:33:45 -05:00
Matthew Campbell
8dc53d4dd5
Refactor and fix nvm_detect_profile tests
...
close #833
close #957
2016-01-01 20:45:36 -05:00
Matthew Campbell
645bda4987
Addresses comments to close #833
2016-01-01 14:09:35 -05:00
David Mankin
918fcb4bd2
PROFILE env var should override detected profile
...
Add tests for PROFILE overriding detected files
2016-01-01 14:00:36 -05:00
David Mankin
cb138a1815
Fix error messages in tests
2016-01-01 13:34:34 -05:00
Cristian Consonni
c37dbbecb4
Detect shell type from $SHELL variable instead of .$SHELLrc files
2015-07-19 02:03:15 +02:00
Jordan Harband
bb2fe618cb
The install script only runs in bash.
2015-04-27 16:55:21 -07:00
Jordan Harband
f0d81e2d33
Revert "install: adding some debugging output"
...
This reverts commit c8efe3d28a
.
Conflicts:
install.sh
2015-02-09 17:16:56 -08:00
elliottcable
a216f56443
tests: fail install_script test if npm can't install package
2015-02-07 20:53:53 -06:00
elliottcable
c8efe3d28a
install: adding some debugging output
2015-02-07 20:50:10 -06:00
elliottcable
0717d5f995
install: some tweaks and clean-up
2015-02-07 17:17:43 -06:00
elliottcable
6cfc309336
install: Pass global-module check in the absence of npm
2015-02-07 17:17:43 -06:00
elliottcable
4ba7ee5797
install: Show a warning when global packages exist
2015-02-07 17:17:43 -06:00
Jordan Harband
689c52c90d
Install nvm-exec as well when installing via script.
...
Fixes #553 .
2014-11-22 10:34:20 -08:00
Xavier Cambar
516e553093
Refactors NVM_SOURCE
2014-11-06 22:35:24 +01:00
Xavier Cambar
b9f15b0ab0
Tests for PROFILE detection
2014-10-29 18:50:04 +01:00
Jordan Harband
d30c0fe146
Cleaning up install_script tests.
2014-10-28 13:47:21 -07:00
Xavier Cambar
3cdec8e875
Testable install script
...
* wraps main code into a function
* EnvVar-based install start
* Clean environment after install
2014-10-28 11:44:01 +01:00