Include nvm path configuration in profile
This commit is contained in:
parent
ec5a00e99d
commit
b6d0624e34
1 changed files with 6 additions and 0 deletions
6
.profile
6
.profile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue