X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/c86dcf1a3dfb56f7ee5929919624a4941a57f5e9..1edf3ccaf2250a42f75b6e56db0a1df3dbcd9c23:/.zsh/rcsstub?ds=sidebyside diff --git a/.zsh/rcsstub b/.zsh/rcsstub index 9291330..b7736de 100644 --- a/.zsh/rcsstub +++ b/.zsh/rcsstub @@ -8,17 +8,23 @@ # Source repository: http://git.madduck.net/v/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