aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-02 02:06:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-02 02:06:33 +1200
commit46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d (patch)
tree963da4b6c8862035daa9d5f35267c81bad6987f7 /bash/bashrc
parentClearer syntax for prompt (diff)
downloaddotfiles-46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d.tar.gz
dotfiles-46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d.zip
Handle empty .bashrc.d/.profile.d dirs
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index f9b0e38d..1fc1df2d 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -67,7 +67,7 @@ shopt -s progcomp 2>/dev/null
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]]; then
for config in "$HOME"/.bashrc.d/*; do
- source "$config"
+ [[ -f $config ]] && source "$config"
done
fi
unset config