From 6662ddd9fbed9d285aa79f2f53ea6f4a9d8cdf0c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 7 Feb 2020 17:22:19 -0500 Subject: [PATCH] Set up nvm in bashrc instead of bash_profile --- bash/.bash_profile | 12 ------------ bash/.bashrc | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bash/.bash_profile b/bash/.bash_profile index 78300a0..0c714a9 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -2,18 +2,6 @@ # $HOME/.bash_profile # -if [ -f /usr/share/nvm/init-nvm.sh ]; -then - source /usr/share/nvm/init-nvm.sh -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 - [[ -f "$HOME/.bashrc" ]] && source $HOME/.bashrc [[ -f "$HOME/.bash_local" ]] && source "$HOME/.bash_local" diff --git a/bash/.bashrc b/bash/.bashrc index 4fc0edb..9b2bfd7 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -15,6 +15,18 @@ fi alias edit="$(which emacsclient) " +if [ -f /usr/share/nvm/init-nvm.sh ]; +then + source /usr/share/nvm/init-nvm.sh +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 + if [ -f ~/.bashrc.local ]; then source ~/.bashrc.local