open ~/.zshrc
add this to ~/.zshrc
chpwd_functions=(change_nvm_version)
function change_node_version { nvmrc="./.nvmrc" if [ -f "$nvmrc" ]; then version="$(cat "$nvmrc")" nvm use $version fi }
chpwd_functions=(change_node_version)
lastly do source ~/.zshrc