Skip to content

Instantly share code, notes, and snippets.

@kohendrix
Last active December 31, 2019 09:07
Show Gist options
  • Save kohendrix/c8267a4f0ea456acdf24cec18a9ab040 to your computer and use it in GitHub Desktop.
Save kohendrix/c8267a4f0ea456acdf24cec18a9ab040 to your computer and use it in GitHub Desktop.
basic setup for nvm (0.35.0)
# 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