X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/fee44c904d0fe9a9809c347b0de86a1a20c61786..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/sourcedir diff --git a/.zsh/sourcedir b/.zsh/sourcedir index 4226915..cae9467 100644 --- a/.zsh/sourcedir +++ b/.zsh/sourcedir @@ -2,10 +2,10 @@ # # Defines helper function to source files in a directory # -# Copyright © 1994–2008 martin f. krafft +# Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: http://git.madduck.net/v/etc/zsh.git # . $ZDOTDIR/logging @@ -19,6 +19,9 @@ sourcedir() { for f in "$1"/*(.N,@N); do case "$f" in *~|*.bak|*.old|*.sw?|*.zwc|*.disabled) continue;; + *-BREAK_HERE) + zinfo "Breaking out of sourcing file in '$1' due to file '${f##*/}'…" + break;; esac # zdebug " sourcing file $f" source "$f"