Created
February 7, 2018 19:12
-
-
Save miguelmota/2167839322295777cc948b11bdf8a049 to your computer and use it in GitHub Desktop.
Lazy load nvm.sh
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
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use | |
alias node='unalias node ; unalias npm ; nvm use default ; node $@' | |
alias npm='unalias node ; unalias npm ; nvm use default ; npm $@' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment