From 69dabe5a87f556505b6dd05ea2250df293b4889b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 10 Jun 2015 10:44:18 +1200 Subject: Instate .bash_profile.d Stuff that prints messages really only needs to be done for my primary login shell --- bash/bash_profile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bash/bash_profile') diff --git a/bash/bash_profile b/bash/bash_profile index 7366840e..05b15693 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -11,6 +11,16 @@ elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ return fi +# Load any supplementary scripts +if [[ -d $HOME/.bash_profile.d ]] ; then + for bash_profile in "$HOME"/.bash_profile.d/*.bash ; do + if [[ -e $bash_profile ]] ; then + source "$bash_profile" + fi + done + unset -v bash_profile +fi + # Source interactive Bash config if it exists if [[ -e $HOME/.bashrc ]] ; then source "$HOME"/.bashrc -- cgit v1.2.3