X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/9a1960b5edade792e0d4d9a8c8e0630e774affc5..80612165af8557e0d1b82b5760a5c9c471d564dc:/.zsh/rcsstub?ds=inline diff --git a/.zsh/rcsstub b/.zsh/rcsstub index b7c3f83..b7736de 100644 --- a/.zsh/rcsstub +++ b/.zsh/rcsstub @@ -1,6 +1,6 @@ -# .zshenv +# rcsstub # -# Actual .zshenv file +# Stub for all .z* files; actual content comes from a directory # # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 @@ -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