Last active
January 26, 2016 16:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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