bash_aliases: alias files do not need to be executable to be sourced

This commit is contained in:
Josh Holtrop 2011-09-09 14:57:03 -04:00
parent b513d3be90
commit cb3f4e43f2

View File

@ -129,7 +129,7 @@ fi
# or within a subdirectory thereof
# this allows multiple alias files or repositories of alias files
for f in ~/.bash_aliases.d/* ~/.bash_aliases.d/*/*; do
if [ -f $f -a -x $f ]; then
if [ -f $f ]; then
. $f
fi
done