Last active
December 31, 2019 09:07
-
-
Save kohendrix/c8267a4f0ea456acdf24cec18a9ab040 to your computer and use it in GitHub Desktop.
basic setup for nvm (0.35.0)
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
# basic default setup | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# use nvm if the directory has .nvmrc | |
if [ -f .nvmrc ] | |
then | |
nvm use | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment