diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index fa92a64e..fd734cc2 100755 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -1,12 +1,16 @@ #!/usr/bin/env zsh -# [[ -n $PROFILE_ZSH ]] && { -# PS4=$'\\\011%D{%s%6.}\011%x\011%I\011%N\011%e\011' -# exec 3>&2 2>"${HOME}/zshstart.$$.log" -# setopt xtrace prompt_subst -# } - # `local` sets the variable's scope to this function and its descendendants. - local ZDOTDIR=$HOME/.config/zsh - # load all of the files in rc.d that start with - and end in `.zsh`. - for f in $ZDOTDIR/rc.d/<->-*zsh(n); source $f + +[ -z "$ZPROF" ] || zmodload zsh/zprof + + 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" + 0="${${(M)0:#/*}:-$PWD/$0}" + # print -- "${0:h}" + local ZDOTDIR="${0:h}" + for f in ${ZDOTDIR}/rc.d/<->-*zsh(N); do + source "$f" + # print -- "$f" + done + +[ -z "$ZPROF" ] || zprof # vim: set expandtab filetype=zsh shiftwidth=2 softtabstop=2 tabstop=2: