aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc5
-rw-r--r--sh/profile5
2 files changed, 6 insertions, 4 deletions
diff --git a/bash/bashrc b/bash/bashrc
index fde93050..4e7895c3 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -86,8 +86,9 @@ fi
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]] ; then
- for _ in "$HOME"/.bashrc.d/*.bash ; do
- source "$_"
+ for bashrc in "$HOME"/.bashrc.d/*.bash ; do
+ source "$bashrc"
done
+ unset -v bashrc
fi
diff --git a/sh/profile b/sh/profile
index 483e0b5a..6d873c67 100644
--- a/sh/profile
+++ b/sh/profile
@@ -5,8 +5,9 @@ fi
# Load all supplementary scripts in ~/.profile.d
if [ -d "$HOME"/.profile.d ] ; then
- for _ in "$HOME"/.profile.d/*.sh ; do
- . "$_"
+ for profile in "$HOME"/.profile.d/*.sh ; do
+ . "$profile"
done
+ unset -v profile
fi