aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-07 15:01:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-07 15:01:10 +1200
commit68ae7e846bdd0c116cdbce98d63be93f09e6ec34 (patch)
tree3f8ba41038e664851960b0eccbc42291642cd0f0 /bash/bashrc
parentAdd newline (diff)
downloaddotfiles-68ae7e846bdd0c116cdbce98d63be93f09e6ec34.tar.gz
dotfiles-68ae7e846bdd0c116cdbce98d63be93f09e6ec34.zip
Check existence of subfiles
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 a0f6448a..f2d32558 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -86,7 +86,9 @@ fi
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]] ; then
for bashrc in "$HOME"/.bashrc.d/*.bash ; do
- source "$bashrc"
+ if [[ -e $bashrc ]] ; then
+ source "$bashrc"
+ fi
done
unset -v bashrc
fi