mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
nvm: add autoloading of nvm version in .nvmrc
Closes #5782 Fixes #8959 Closes #8976
This commit is contained in:
parent
8163f65084
commit
8c8fe2a171
2 changed files with 32 additions and 1 deletions
|
|
@ -20,3 +20,7 @@ plugins=(... nvm)
|
|||
- **`NVM_LAZY`**: if you want the plugin to defer the load of nvm to speed-up the start of your zsh session,
|
||||
set `NVM_LAZY` to `1`. This will use the `--no-use` parameter when loading nvm, and will create a function
|
||||
for `node`, `npm` and `yarn`, so when you call either of these three, nvm will load with `nvm use default`.
|
||||
|
||||
- **`NVM_AUTOLOAD`**: if `NVM_AUTOLOAD` is set to `1`, the plugin will automatically load a node version when
|
||||
if finds a [`.nvmrc` file](https://github.com/nvm-sh/nvm#nvmrc) in the current working directory indicating
|
||||
which node version to load.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue