Include nvm path configuration in profile

This commit is contained in:
Daniel McKnight 2025-06-03 08:34:02 -07:00
parent ec5a00e99d
commit b6d0624e34

View file

@ -26,6 +26,12 @@ if [ -d "${KREW_ROOT:-$HOME/.krew}/bin" ] ; then
PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
fi fi
if [ -d "$HOME/.nvm" ] ; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi
# Set nvim as the preferred editor if available # Set nvim as the preferred editor if available
if [ $(which nvim) ]; then if [ $(which nvim) ]; then
export EDITOR=nvim export EDITOR=nvim