aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_profile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-10 10:44:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-10 10:44:18 +1200
commit69dabe5a87f556505b6dd05ea2250df293b4889b (patch)
treeffefcd8b0d4ac4d6d61beea8dd4ac67031f79b99 /bash/bash_profile
parentPrint verse(1) output on login but only once a day (diff)
downloaddotfiles-69dabe5a87f556505b6dd05ea2250df293b4889b.tar.gz
dotfiles-69dabe5a87f556505b6dd05ea2250df293b4889b.zip
Instate .bash_profile.d
Stuff that prints messages really only needs to be done for my primary login shell
Diffstat (limited to 'bash/bash_profile')
-rw-r--r--bash/bash_profile10
1 files changed, 10 insertions, 0 deletions
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