diff --git a/home/.zsh/custom/walkah.zsh b/home/.zsh/custom/walkah.zsh index 09f8f79..82d92ba 100644 --- a/home/.zsh/custom/walkah.zsh +++ b/home/.zsh/custom/walkah.zsh @@ -1 +1,9 @@ -# oh-my-zsh complains without a .zsh file in here \ No newline at end of file +# oh-my-zsh complains without a .zsh file in here + +autoload -U add-zsh-hook +load-nvmrc() { + if [[ -f .nvmrc && -r .nvmrc ]]; then + nvm use + fi +} +add-zsh-hook chpwd load-nvmrc