Enable tracing of the initialization
[zsh.git] / .zsh / zshenv.home
1 # -*- mode: sh;-*-
2 ############
3 #
4 # .zshenv
5 # Written by Joerg Jaspert <joerg@debian.org>
6 #
7 ############
8 ZDOTDIR=${ZDOTDIR:-"${HOME}/.zsh"}
9 [ -r "${ZDOTDIR}/zshenv" ] && . "${ZDOTDIR}/zshenv"
10
11 # If you want to "profile" the shell initialization, enable
12 # the following lines.
13 # Don't have this enabled for normal use, its pretty distracting and
14 # also changes some initialization behaviour (re prompts)
15
16 ## Set the trace prompt to be like
17 ## YYYY-MM-DD HH:MM:SS scriptname(function):line>
18 #PS4='%D{%Y-%m-%d %H:%M:%S} %x(%N):%i> '
19 ## save file stderr to file descriptor 3 and redirect stderr (including trace
20 ## output) to a tempfile
21 #INITLOG=$(mktemp --tmpdir=/tmp zshlog.XXXXX.${USER}.$(date +%s))
22 #exec 3>&2 2>${INITLOG}
23 ## set options to turn on tracing and expansion of commands contained in the prompt
24 #setopt xtrace prompt_subst
25
26 # Don't do anything more in here, do everything inside
27 # $ZDOTDIR!