sourcefiles() {
if [ -d "$1" ]; then
for i in "${1}/"*; do
. "$i"
done
fi
}
sourcefiles /usr/local/etc/sh/shrc.d