Skip to content

Instantly share code, notes, and snippets.

@cjlyth
Created October 22, 2013 23:19
Show Gist options
  • Save cjlyth/7109883 to your computer and use it in GitHub Desktop.
Save cjlyth/7109883 to your computer and use it in GitHub Desktop.
NVM load script, include this in .profile instead of the one they package
hash nvm 2>/dev/null
if [ "$?" == "1" ]; then
if [ -f "$HOME/.nvm/nvm.sh" ]; then
. $HOME/.nvm/nvm.sh
if [ -f "$HOME/.nvm/bash_completion" ]; then
. $HOME/.nvm/bash_completion
fi
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment