Add nvmrc hook on chpwd

This commit is contained in:
James Walker 2016-05-01 18:34:43 -04:00
parent 0f4492a5ec
commit 3a7e3bb618

View File

@ -1 +1,9 @@
# oh-my-zsh complains without a .zsh file in here
# 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