A git repo I have checked out locally recently added a .nvmrc with version 13.8.0. I don't have that version installed, so every time I enter that directory, it starts trying to install 13.8.0, which I have to quickly cancel every time since there's no reason to install 13.8.0 when it is outdated but not LTS.
This PR adds support for the array environment variables NVM_AUTO_USE_IGNORE_VERSION and NVM_AUTO_USE_IGNORE_PATH. These are used to ignore specific values from .nvmrc and to ignore the .nvmrc in specific directories.
A git repo I have checked out locally recently added a
.nvmrc
with version 13.8.0. I don't have that version installed, so every time I enter that directory, it starts trying to install 13.8.0, which I have to quickly cancel every time since there's no reason to install 13.8.0 when it is outdated but not LTS.This PR adds support for the array environment variables
NVM_AUTO_USE_IGNORE_VERSION
andNVM_AUTO_USE_IGNORE_PATH
. These are used to ignore specific values from.nvmrc
and to ignore the.nvmrc
in specific directories.Examples (in
~/.zshrc
):Auto-use will be skipped if the
.nvmrc
file it finds contains the valuesv13.8.0
orlts/boron
.Auto-use will be skipped if the
.nvmrc
file it finds is$HOME/projects/annoying-external-repo/.nvmrc
.