Set lts flag on nvm

This commit is contained in:
Alicia Sykes 2024-08-10 23:40:30 +01:00
parent a3cfb795bc
commit 6acb6b412d

View File

@ -67,7 +67,7 @@ autoload -U add-zsh-hook
load-nvmrc() {
local nvmrc_path=".nvmrc"
if [[ -f $nvmrc_path ]]; then
nvm use
nvm use --lts
fi
}
add-zsh-hook chpwd load-nvmrc