aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 14:11:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 14:11:37 +1200
commit328319692d805e1eb5ba889cd77650638e7acb86 (patch)
tree48b928ea789e1f055aa81985a619572972af55db
parentFix a few variable contamination issues (diff)
downloaddotfiles-328319692d805e1eb5ba889cd77650638e7acb86.tar.gz
dotfiles-328319692d805e1eb5ba889cd77650638e7acb86.zip
Better var names for subfile config sourcing
-rw-r--r--bash/bashrc6
-rw-r--r--sh/profile6
2 files changed, 6 insertions, 6 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 5b55cf93..d3960ea5 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -33,9 +33,9 @@ fi
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]]; then
- for file in "$HOME"/.bashrc.d/*; do
- source "$file"
+ for config in "$HOME"/.bashrc.d/*; do
+ source "$config"
done
fi
-unset file
+unset config
diff --git a/sh/profile b/sh/profile
index efe47283..df1f30d8 100644
--- a/sh/profile
+++ b/sh/profile
@@ -15,9 +15,9 @@ export PATH
# Load all supplementary scripts in ~/.profile.d
if [ -d "$HOME"/.profile.d ]; then
- for file in "$HOME"/.profile.d/*; do
- . "$file"
+ for config in "$HOME"/.profile.d/*; do
+ . "$config"
done
fi
-unset file
+unset config