1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-25 03:20:09 +01:00

Make sure only files get sourced

This commit is contained in:
Matthias Kretschmann 2013-10-05 13:31:13 +02:00
parent 4533bdebad
commit bce33d39e0

View File

@ -13,7 +13,7 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
for file in ~/.{bash_prompt,aliases,private}; do for file in ~/.{bash_prompt,aliases,private}; do
[ -r "$file" ] && source "$file" [ -r "$file" ] && [ -f "$file" ] && source "$file"
done done
unset file unset file