Skip to content

Instantly share code, notes, and snippets.

@ohcibi
Created February 29, 2016 09:41
Show Gist options
  • Save ohcibi/986fe0876b1cf746d1e8 to your computer and use it in GitHub Desktop.
Save ohcibi/986fe0876b1cf746d1e8 to your computer and use it in GitHub Desktop.
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
fi
}
add-zsh-hook chpwd load-nvmrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment