sourcedir() {
if [ ! -d "$1" ]; then
+ error "no such directory: $1"
return 1
fi
- debug "sourcing directory ${1#$ZDOTDIR/}"
+# debug "sourcing directory ${1#$ZDOTDIR/}"
for f in "$1"/*(.N); do
case "$f" in
- *~|*.bak|*.sw?|*.zwc|*.disabled) continue;;
+ *~|*.bak|*.old|*.sw?|*.zwc|*.disabled) continue;;
esac
- debug " sourcing file $f"
- . "$f"
+# debug " sourcing file $f"
+ source "$f"
done
}