dotfiles/dot_bashrc.d/executable_bashrc.init
2020-11-10 16:08:09 +01:00

12 lines
307 B
Plaintext

# This churns through files in $HOME/.bashrc.d if they are executable.
if [ -d $HOME/.bashrc.d ]; then
for x in $HOME/.bashrc.d/* ; do
if [[ "${x##*/}" != "bashrc.init" ]]; then
test -f "$x" || continue
test -x "$x" || continue
. "$x"
fi
done
fi