Skip to content

Instantly share code, notes, and snippets.

@peterpme
Last active January 26, 2016 16:57
Show Gist options
  • Save peterpme/f00e31e3d5caea5a298c to your computer and use it in GitHub Desktop.
Save peterpme/f00e31e3d5caea5a298c to your computer and use it in GitHub Desktop.
Given a `.nvmrc` file within your directory, automatically install the required node version
# belongs in ~/.zshrc
#chpwd is a zsh hook
function chpwd() {
[ -e .nvmrc ] && nvm install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment