aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_profile11
-rw-r--r--bash/bashrc3
2 files changed, 5 insertions, 9 deletions
diff --git a/bash/bash_profile b/bash/bash_profile
index 9d2fd76c..db1d9bc8 100644
--- a/bash/bash_profile
+++ b/bash/bash_profile
@@ -14,13 +14,10 @@ elif ((BASH_VERSINFO[0] == 2)) &&
fi
# Load any supplementary scripts
-if [[ -d $HOME/.bash_profile.d ]] ; then
- for bash_profile in "$HOME"/.bash_profile.d/*.bash ; do
- [[ -e $bash_profile ]] || continue
- source "$bash_profile"
- done
- unset -v bash_profile
-fi
+for sh in "$HOME"/.bash_profile.d/*.bash ; do
+ [[ -e $sh ]] && source "$sh"
+done
+unset -v sh
# If ~/.bashrc exists, source that too; the test for interactivity is in there
if [[ -f $HOME/.bashrc ]] ; then
diff --git a/bash/bashrc b/bash/bashrc
index f36471f7..0e1859ad 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -111,7 +111,6 @@ fi
for sh in "$ENV" \
"$HOME"/.bashrc.d/*.bash \
"$HOME"/.bash_completion.d/*.bash ; do
- [[ -e $sh ]] || continue
- source "$sh"
+ [[ -e $sh ]] && source "$sh"
done
unset -v sh