X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Frcsstub;h=10e652a90b0675f4cd8d63b121ed5e978fe90687;hb=6aef4f4cbd4de6478e2cfa59621adfe104c7a497;hp=d02ba20c212a77be50716e185985efa518dda008;hpb=5b65dccf69b24ee0ff24b053826d3f157d05f819;p=zsh.git diff --git a/.zsh/rcsstub b/.zsh/rcsstub index d02ba20..10e652a 100644 --- a/.zsh/rcsstub +++ b/.zsh/rcsstub @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # rcsstub # # Stub for all .z* files; actual content comes from a directory @@ -5,20 +6,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="$(print -P %1N)" - . $ZDOTDIR/sourcedir - sourcedir $ZDOTDIR/${file#.} + unset _DIR - __do_debug && set +x +# __do_debug && set +x || : fi # vim:ft=zsh