diff options
Diffstat (limited to 'bash/bash_profile')
-rw-r--r-- | bash/bash_profile | 10 |
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 |