aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-02-10 23:49:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-02-10 23:49:47 +1300
commit3d9e0ae95400747d070932013e761aa38e5124be (patch)
tree2fae51cb79146b2f66b9239ce36a087322bd51e8 /bash/bashrc
parentRemove some unneeded semicolons (diff)
downloaddotfiles-3d9e0ae95400747d070932013e761aa38e5124be.tar.gz
dotfiles-3d9e0ae95400747d070932013e761aa38e5124be.zip
Use explicit if for condition
Clearer than &&
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 733741a1..0d68f01f 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -80,7 +80,9 @@ fi
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]]; then
for config in "$HOME"/.bashrc.d/*.bash; do
- [[ -r $config ]] && source "$config"
+ if [[ -r $config ]]; then
+ source "$config"
+ fi
done
fi
unset -v config