aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Gärtner <christiangaertner.film@googlemail.com>2013-09-15 18:55:07 +0200
committerMathias Bynens <mathias@qiwi.be>2013-09-21 16:28:33 +0200
commit9b7620e32208f811fd4c3c2353f41ec687731432 (patch)
treec5a4c8f4d3195917ed04cb4817dc3d4742519bd7
parent25cddf650425d785e8b75869ef1dec6b438d150e (diff)
downloaddotfiles-9b7620e32208f811fd4c3c2353f41ec687731432.tar.gz
dotfiles-9b7620e32208f811fd4c3c2353f41ec687731432.tar.bz2
dotfiles-9b7620e32208f811fd4c3c2353f41ec687731432.zip
.bash_profile: Make sure only files get sourced
Closes #250.
-rw-r--r--.bash_profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 8124c9a..0d8af54 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -5,7 +5,7 @@ export PATH="$HOME/bin:$PATH"
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
- [ -r "$file" ] && source "$file"
+ [ -r "$file" ] && [ -f "$file" ] && source "$file"
done
unset file