v1.7.0
Highlight 🔦
There's a new --use-on-cd
option to fnm env
that will change Node versions automatically based on the current working directory .nvmrc
or .node-version
.
If you already have fnm
installed,
- and you use bash/zsh, you will need to change your
.zshrc
,.bashrc
or.bash_profile
:- eval `fnm env --multi` + eval "`fnm env --multi --use-on-cd`"
- and you have fish, you will need to change your
fish.config
to the following:- eval (fnm env --multi) + fnm env --multi --use-on-cd | source