From: Maximilian Friedersdorff Date: Wed, 2 Dec 2015 08:44:43 +0000 (+0000) Subject: Load .bashrc from .bash_profile for login shells. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=fb0b1715b71ca7fcac787301b91afc8226bb1e1e;p=max%2Fdotfiles.git Load .bashrc from .bash_profile for login shells. --- diff --git a/bash_profile b/bash_profile index 499dc52..84e2c97 100644 --- a/bash_profile +++ b/bash_profile @@ -7,3 +7,11 @@ export PATH="$PATH:/home/max/bin:$NPM_PACKAGES/bin:$HOME/.rvm/bin" unset MANPATH MANPATH="$NPM_PACKAGES/share/man:$(manpath)" NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH" + +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi +