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:
parent
4533bdebad
commit
bce33d39e0
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user