1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-20 19:31:58 +00:00
Commit graph

30 commits

Author SHA1 Message Date
Kiran Koirala
9af7ebcf36
fix(nvm): use command cat to avoid alias (#12410) 2024-05-10 12:08:35 +02:00
Kiran Koirala
b1af78d64d
fix(nvm): use nvm version when needed (#12409) 2024-05-10 09:27:47 +02:00
Carlo Sala
8c5f64cc2f
feat(nvm): add corepack to lazy_cmd 2024-05-07 21:30:52 +02:00
vladislav doster
1d09c6bb0a
style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
Carlo Sala
fd01fd66ce
perf(nvm): don't call nvm version on every cd
Now we only call `nvm version` in case we changed directory and we are
not anymore in a `.nvmrc` directory.
See https://github.com/nvm-sh/nvm/pull/2874
2024-03-04 11:11:35 +01:00
Carlo Sala
94aa49c0b9
feat(nvm)!: make lazy and autoload options compatible
BREAKING CHANGE: Prior to this commit, if `lazy` and `autoload` options
were enabled at the same time, `lazy` was getting overriden and only
`autoload` was taken into account.
Now they work together and `autoload` will be enabled after `nvm` has
been lazy-loaded.

Closes #11690
2024-03-04 11:11:27 +01:00
Carlo Sala
8a8a04f43a
fix(nvm): prevent duplicates in lazy_cmd
Closes #11344
2023-12-27 10:52:23 +01:00
Carlo Sala
7cf00a0b5c
fix(nvm): remove nvm not found verbose message 2023-07-19 14:46:35 +02:00
Carlo Sala
b5be2d39e2
fix(nvm): disable lazy-loading if autoload is set
Closes #11748
2023-06-20 09:36:11 +02:00
Carlo Sala
4ba17232da
feat(nvm)!: remove soft-deprecated code
BREAKING CHANGE: $NVM_LAZY, $NVM_LAZY_CMD, AND $NVM_AUTOLOAD cannot be
used anymore to tweak nvm plugin. Use zstyle-based configurations
instead.
2023-06-20 08:54:37 +02:00
Carlo Sala
46c70406dd
feat(nvm): add npx to lazy trigger list
Closes #11740
2023-06-07 18:43:47 +02:00
Michał Regulski
585e7138b5
fix(nvm): omit message when silent-autoload is enabled (#11371) 2022-12-06 18:22:13 +01:00
Zeragamba
fc44c49cca
fix(nvm): trim non-printable chars from .nvmrc (#10997) 2022-12-01 19:49:41 +01:00
Carlo
64bc22aee4
feat(nvm): add silent-autoload setting (#11363)
Co-authored-by: Michał Regulski <regulskimichal@outlook.com>

Closes #10942
2022-12-01 19:44:48 +01:00
Carlo
6d5ba2d6c4
feat(nvm)!: settings now are zstyle-based (#11335)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-11-15 20:23:09 +01:00
Carlo
78e85c7d78
fix(nvm): source nvm script only when used (#11205)
closes #11042
2022-10-06 21:01:56 +02:00
Marc Cornellà
8741664e55 fix(nvm): don't try to load nvm via brew if not found (#10878)
Fixes #10878
2022-04-24 18:59:44 +02:00
Carlo Sala
a879ff1515
fix(nvm): support path from Apple Silicon Homebrew (#10875) 2022-04-22 19:37:57 +02:00
Guo, Quan
70a0577712
feat(nvm): introduce customizable list of command that triggers lazy loading (#9946)
* Add customizable list of command that triggers lazy loading

* Add $NVM_LAZY_CMD

* Add instruction to `NVM_LAZY_CMD` in README.md
2021-06-13 10:32:47 -07:00
Danny Grove
8c8fe2a171 nvm: add autoloading of nvm version in .nvmrc
Closes #5782
Fixes #8959
Closes #8976
2020-10-09 17:21:03 +02:00
Marc Cornellà
8163f65084 nvm: exit the plugin if the nvm loading script wasn't found 2020-10-09 17:21:03 +02:00
Marc Cornellà
a33c0cdb46 nvm: only lazy-load nvm if the NVM_LAZY setting is set 2020-10-09 17:21:03 +02:00
Keith Yao
3e97308003 nvm: speed-up nvm loading with --no-use
Closes #7138

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-10-09 17:21:03 +02:00
Chigozirim C
d6f3630932 nvm: check $XDG_CONFIG_HOME/nvm for an nvm installation
Closes #7807

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-10-09 17:21:03 +02:00
Marc Cornellà
d8cb670235 nvm: simplify nvm.sh and bash completion loading 2020-10-09 17:21:03 +02:00
Andrew Janke
ef44416df2 nvm: use nvm current in nvm_prompt_info and look in alternate install locations
This makes it work regardless of where nvm is loaded from. And it uses nvm's
version strings, which distinguish the "system" and "none" NVM environments,
instead of reporting the specific version of the system node.js or erroring,
respectively.

Fixes #4336
Closes #4338
2020-10-09 17:21:03 +02:00
davidfmatheson
27857e66d0
nvm: add Homebrew's nvm setup (#8316)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-10-08 17:21:34 +02:00
Sascha Bratton
728c8e7174 nvm: load nvm script only if command doesn't already exist (#5454)
Fixes #5453.
2019-04-08 17:58:27 +02:00
Luke Childs
a7de0fabd7 nvm plugin improvements (#5265)
* Export $NVM_DIR if it doesn't exist and use it when looking for nvm
* Use $NVM_DIR when looking for nvm for completion
* Use $NVM_DIR when looking for nvm in nvm_prompt_info
2016-08-07 19:36:44 +02:00
Paul Melnikow
e3c02bfeba Plugin for Node Version Manager 2013-09-04 18:07:58 -04:00