3 # Defines helper function to source files in a directory
5 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
8 # Source repository: http://git.madduck.net/v/etc/zsh.git
14 if [ ! -d "$1" ]; then
17 # debug "sourcing directory ${1#$ZDOTDIR/}"
18 for f in "$1"/*(.N); do
20 *~|*.bak|*.old|*.sw?|*.zwc|*.disabled) continue;;
22 # debug " sourcing file $f"