More fnm tweaks

This commit is contained in:
2021-11-12 06:42:22 -05:00
parent 65fcff4fd4
commit b002aebbca

View File

@@ -1,4 +1,14 @@
export PATH=/home/ted/.fnm:$PATH
eval "`fnm env`"
autoload -U add-zsh-hook
_fnm_autoload_hook () {
if [[ -f .node-version || -f .nvmrc ]]; then
fnm use --install-if-missing
fi
}
add-zsh-hook chpwd _fnm_autoload_hook \
&& _fnm_autoload_hook
alias nvm="fnm"