X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/a1bdf944d024ca91eca7637d8c0ce880ac2cae16..489c186c295005acd6c007327e2ea843e320dfd3:/.zsh/rcsstub?ds=sidebyside diff --git a/.zsh/rcsstub b/.zsh/rcsstub index 60beecb..2138ef0 100644 --- a/.zsh/rcsstub +++ b/.zsh/rcsstub @@ -5,20 +5,26 @@ # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: http://git.madduck.net/v/etc/zsh.git +# Source repository: git://git.madduck.net/etc/zsh.git # -. $ZDOTDIR/logging -. $ZDOTDIR/util - if [[ -o rcs ]]; then - __do_debug && set -x || : + source $ZDOTDIR/logging + source $ZDOTDIR/util + source $ZDOTDIR/sourcedir + +# __do_debug && set -x || : + + _DIR=$ZDOTDIR/${${(%):-%1N}#.} + sourcedir $_DIR + + if [[ -d $_DIR/parts.d ]]; then + sourcedir $_DIR/parts.d + fi - file="%1N"; file="${(%)file}" - . $ZDOTDIR/sourcedir - sourcedir $ZDOTDIR/${file#.} + unset _DIR - __do_debug && set +x || : +# __do_debug && set +x || : fi # vim:ft=zsh