From fcc7a909f60fae5f92a09019fd18b44053363f84 Mon Sep 17 00:00:00 2001 From: Zachary Billman Date: Tue, 25 Apr 2023 17:23:01 -0400 Subject: [PATCH] Add NVM to .bashrc --- bash/.bashrc | 3 +++ 1 file changed, 3 insertions(+) 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