Kiran Koirala
9af7ebcf36
fix(nvm): use `command cat` to avoid alias ( #12410 )
2 years ago
Kiran Koirala
b1af78d64d
fix(nvm): use `nvm version` when needed ( #12409 )
2 years ago
Carlo Sala
8c5f64cc2f
feat(nvm): add `corepack` to `lazy_cmd`
2 years ago
vladislav doster
1d09c6bb0a
style: remove trailing whitespace ( #12303 )
2 years ago
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
2 years ago
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
2 years ago
Carlo Sala
0ea0d14288
fix(nvm): remove zsh completion
...
We rely on official bash completion now on.
2 years ago
Carlo Sala
8a8a04f43a
fix(nvm): prevent duplicates in lazy_cmd
...
Closes #11344
2 years ago
Carlo Sala
7cf00a0b5c
fix(nvm): remove nvm not found verbose message
3 years ago
Jarrett Lusso
8bdb5c959c
docs(nvm): clarify autoload setup ( #11797 )
3 years ago
Carlo Sala
b5be2d39e2
fix(nvm): disable lazy-loading if autoload is set
...
Closes #11748
3 years ago
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.
3 years ago
Carlo Sala
46c70406dd
feat(nvm): add `npx` to lazy trigger list
...
Closes #11740
3 years ago
Michał Regulski
585e7138b5
fix(nvm): omit message when silent-autoload is enabled ( #11371 )
3 years ago
Zeragamba
fc44c49cca
fix(nvm): trim non-printable chars from .nvmrc ( #10997 )
3 years ago
Carlo
64bc22aee4
feat(nvm): add `silent-autoload` setting ( #11363 )
...
Co-authored-by: Michał Regulski <regulskimichal@outlook.com>
Closes #10942
3 years ago
Carlo
6d5ba2d6c4
feat(nvm)!: settings now are zstyle-based ( #11335 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
3 years ago
Carlo
78e85c7d78
fix(nvm): source nvm script only when used ( #11205 )
...
closes #11042
3 years ago
Marc Cornellà
8741664e55
fix(nvm): don't try to load nvm via `brew` if not found ( #10878 )
...
Fixes #10878
4 years ago
Carlo Sala
a879ff1515
fix(nvm): support path from Apple Silicon Homebrew ( #10875 )
4 years ago
Paul Robert Lloyd
4d8d7bed50
docs(nvm): clarify how to get Homebrew directory ( #10393 )
4 years ago
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
5 years ago
Paul Robert Lloyd
4298e89b4b
docs(nvm): clarify how to enable settings ( #9542 )
...
It wasn’t clear where I should set the `NVM_AUTOLOAD` variable. The clue was to be found in [the docs for another plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fzf ). It seems setting values need to come before Oh My Zsh is sourced.
Updated read me to reflect this, and the fact that one of the settings mentioned is specific to nvm, not this plugin.
5 years ago
Danny Grove
8c8fe2a171
nvm: add autoloading of nvm version in .nvmrc
...
Closes #5782
Fixes #8959
Closes #8976
6 years ago
Marc Cornellà
8163f65084
nvm: exit the plugin if the nvm loading script wasn't found
6 years ago
Marc Cornellà
a33c0cdb46
nvm: only lazy-load nvm if the NVM_LAZY setting is set
6 years ago
Keith Yao
3e97308003
nvm: speed-up nvm loading with `--no-use`
...
Closes #7138
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Chigozirim C
d6f3630932
nvm: check $XDG_CONFIG_HOME/nvm for an nvm installation
...
Closes #7807
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Marc Cornellà
d8cb670235
nvm: simplify nvm.sh and bash completion loading
6 years ago
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
6 years ago
davidfmatheson
27857e66d0
nvm: add Homebrew's nvm setup ( #8316 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Nick Paterno
bc7f596dc0
nvm: add `install-latest-npm` to completion ( #8709 )
6 years ago
Sascha Bratton
728c8e7174
nvm: load nvm script only if command doesn't already exist ( #5454 )
...
Fixes #5453 .
7 years ago
Denys Dovhan
d1e1f1f340
nvm: add README ( #7202 )
8 years ago
Maciej Sypień
5c0911c184
update nvm completions with v0.29.0 ( #4701 )
8 years ago
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
10 years ago
Paul Melnikow
3007f96090
NVM: Avoid providing completions when nvm is not installed
13 years ago
Paul Melnikow
e3c02bfeba
Plugin for Node Version Manager
13 years ago