SHARE
TWEET

Untitled

a guest Oct 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # normal brew nvm shell config lines minus the 2nd one
  2. # lazy loading the bash completions does not save us meaningful shell startup time, so we won't do it
  3. export NVM_DIR="$HOME/.nvm"
  4. [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion"  # This loads nvm bash_completion
  5.  
  6. # add our default nvm node (`nvm alias default 10.16.0`) to path without loading nvm
  7. export PATH="$NVM_DIR/versions/node/v$(<$NVM_DIR/alias/default)/bin:$PATH"
  8. # alias `nvm` to this one liner lazy load of the normal nvm script
  9. alias nvm="unalias nvm; [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"; nvm $@"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top