Add in homebrew nvm path

This commit is contained in:
Josh Sherman 2022-06-02 20:10:40 -05:00
parent fa85ede489
commit d527bf3f02
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -94,7 +94,9 @@ else
if [ -z ${NVM_DIR+x} ]; then if [ -z ${NVM_DIR+x} ]; then
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
if [ -s "$NVM_DIR/nvm.sh" ]; then if [ -s "/opt/homebrew/opt/nvm/nvm.sh" ]; then
source "/opt/homebrew/opt/nvm/nvm.sh"
elif [ -s "$NVM_DIR/nvm.sh" ]; then
source "$NVM_DIR/nvm.sh" source "$NVM_DIR/nvm.sh"
elif [ -s "/usr/share/nvm/init-nvm.sh" ]; then elif [ -s "/usr/share/nvm/init-nvm.sh" ]; then
source /usr/share/nvm/init-nvm.sh source /usr/share/nvm/init-nvm.sh
@ -104,16 +106,3 @@ else
fi fi
} }
fi fi
# TODO: If/when I use nvm, will probably need this
#
# You should create NVM's working directory if it doesn't exist:
#
# mkdir ~/.nvm
#
# Add the following to ~/.zshrc or your desired shell
# configuration file:
#
# export NVM_DIR="$HOME/.nvm"
# [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
# [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion