4 # Defines helper function to source files in a directory
6 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
7 # Released under the terms of the Artistic Licence 2.0
9 # Source repository: git://git.madduck.net/etc/zsh.git
15 if [ ! -d "$1" ]; then
16 error "no such directory: $1"
19 # debug "sourcing directory ${1#$ZDOTDIR/}"
20 for f in "$1"/*(.N,@N); do
22 *~|*.bak|*.old|*.sw?|*.zwc|*.disabled) continue;;
24 # debug " sourcing file $f"