Created
February 9, 2018 17:35
-
-
Save thestephenmarshall/9f958031ea0bce62bf5a563e27fbb41d to your computer and use it in GitHub Desktop.
Autoload nvmrc
This file contains 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
# 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