X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/5a8a28e150ef5e3d26ed53b9a4524726527c3a0a..80612165af8557e0d1b82b5760a5c9c471d564dc:/.zsh/rcsstub?ds=inline diff --git a/.zsh/rcsstub b/.zsh/rcsstub index 0f30dc6..b7736de 100644 --- a/.zsh/rcsstub +++ b/.zsh/rcsstub @@ -8,15 +8,21 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -. $ZDOTDIR/logging -. $ZDOTDIR/util - if [[ -o rcs ]]; then + source $ZDOTDIR/logging + source $ZDOTDIR/util + source $ZDOTDIR/sourcedir + # __do_debug && set -x || : - file="%1N"; file="${(%)file}" - . $ZDOTDIR/sourcedir - sourcedir $ZDOTDIR/${file#.} + _DIR=$ZDOTDIR/${${(%):-%1N}#.} + sourcedir $_DIR + + if [[ -d $_DIR/parts.d ]]; then + sourcedir $_DIR/parts.d + fi + + unset _DIR # __do_debug && set +x || : fi