Skip to content

Instantly share code, notes, and snippets.

@hkbu-kennycheng
Created February 13, 2023 04:52
Show Gist options
  • Select an option

  • Save hkbu-kennycheng/fa9cb4a52651e24626d26a90603af9de to your computer and use it in GitHub Desktop.

Select an option

Save hkbu-kennycheng/fa9cb4a52651e24626d26a90603af9de to your computer and use it in GitHub Desktop.
export nvm for .bash_profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment