Created
June 20, 2019 02:41
-
-
Save nuga99/2bef82a4d6a10f54447457b57da2bf73 to your computer and use it in GitHub Desktop.
Reduce Slow Terminal (NVM install) by create an Alias
This file contains hidden or 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 LOADER FOR NODE AND NPM | |
alias load_nvm='export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' # This loads nvm | |
alias node='unalias node npm && load_nvm && node' | |
alias npm='unalias node npm && load_nvm && npm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment