# selection prompt used within a select loop.
PS3='?# '
# the execution trace prompt (setopt xtrace). default: '+%N:%i>'
- PS4='+%N:%i:%_> '
+ # Not changed if the option xtrace is on, assuming that a trace prompt is then
+ # already defined.
+ if [[ ${options[xtrace]} == off ]]; then
+ PS4='+%N:%i:%_> '
+ fi
if zstyle -t ':prompt:ganneff' vcs_info && \
is439 && autoload -Uz vcs_info && vcs_info; then
+# -*- mode: sh;-*-
############
#
# .zshenv
ZDOTDIR=${ZDOTDIR:-"${HOME}/.zsh"}
[ -r "${ZDOTDIR}/zshenv" ] && . "${ZDOTDIR}/zshenv"
+# If you want to "profile" the shell initialization, enable
+# the following lines.
+# Don't have this enabled for normal use, its pretty distracting and
+# also changes some initialization behaviour (re prompts)
+
+## Set the trace prompt to be like
+## YYYY-MM-DD HH:MM:SS scriptname(function):line>
+#PS4='%D{%Y-%m-%d %H:%M:%S} %x(%N):%i> '
+## save file stderr to file descriptor 3 and redirect stderr (including trace
+## output) to a tempfile
+#INITLOG=$(mktemp --tmpdir=/tmp zshlog.XXXXX.${USER}.$(date +%s))
+#exec 3>&2 2>${INITLOG}
+## set options to turn on tracing and expansion of commands contained in the prompt
+#setopt xtrace prompt_subst
+
# Don't do anything more in here, do everything inside
# $ZDOTDIR!