Skip to content

Commit

Permalink
.bash_profile: Make sure only files get sourced
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGaertner authored and marknorgren committed Apr 21, 2014
1 parent c2e8f62 commit 14401b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bash_profile
Expand Up @@ -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

Expand Down

0 comments on commit 14401b2

Please sign in to comment.