Skip to content

Instantly share code, notes, and snippets.

@tlunter
Created March 5, 2018 18:57
Show Gist options
  • Save tlunter/1bd5195578c474ede4d52644371b2e45 to your computer and use it in GitHub Desktop.
Save tlunter/1bd5195578c474ede4d52644371b2e45 to your computer and use it in GitHub Desktop.
lazy load nvm
nvm() {
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
nvm "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment