Skip to content

Instantly share code, notes, and snippets.

View scttcper's full-sized avatar
🌮

Scott Cooper scttcper

🌮
View GitHub Profile

Keybase proof

I hereby claim:

  • I am scttcper on github.
  • I am scooper (https://keybase.io/scooper) on keybase.
  • I have a public key whose fingerprint is 9437 4253 F236 C1E4 02B3 FFE7 916C B790 7928 91D0

To claim this, I am signing this object:

@scttcper
scttcper / lazynvm.sh
Created November 16, 2018 06:55 — forked from fl0w/lazynvm.sh
# lazyload nvm
# all props goes to http://broken-by.me/lazy-load-nvm/
# grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/
lazynvm() {
unset -f nvm node npm npx 2>/dev/null
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
if [ -f "$NVM_DIR/bash_completion" ]; then
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion