diff --git a/bash/.bashrc b/bash/.bashrc index 1a73944..4ebd645 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -19,6 +19,9 @@ export PATH=$PATH:/home/zpb/.config/emacs/bin export EDITOR="emacs -nw" export VISUAL=emacs +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 + if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} ]] then exec fish