Skip to content

Instantly share code, notes, and snippets.

@thestephenmarshall
Created February 9, 2018 17:35
Show Gist options
  • Save thestephenmarshall/9f958031ea0bce62bf5a563e27fbb41d to your computer and use it in GitHub Desktop.
Save thestephenmarshall/9f958031ea0bce62bf5a563e27fbb41d to your computer and use it in GitHub Desktop.
Autoload nvmrc
# NVM
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