]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/sourcedir
do not source *.old files
[zsh.git] / .zsh / sourcedir
index cd89e2cddb3538a5305abbee30a500892b55dfe9..f5ac6842b1a103dcabc8c7d2eb2756a3302f0332 100644 (file)
@@ -17,7 +17,7 @@ sourcedir() {
   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"