X-Git-Url: https://git.ganneff.de//index.cgi?p=zsh.git;a=blobdiff_plain;f=.zsh%2Fzshenv.home;h=5f79ff393322ce6f800f65dfce05cef782e623ca;hp=f0813469c4bcdb150240381bfc6a2aedc2d900ce;hb=8e6151b3e52cdff56bdb1b8debca358669c96e06;hpb=5f7d57655e34f416815be6ead8efb3c94b961c9f diff --git a/.zsh/zshenv.home b/.zsh/zshenv.home index f081346..5f79ff3 100644 --- a/.zsh/zshenv.home +++ b/.zsh/zshenv.home @@ -1,3 +1,4 @@ +# -*- mode: sh;-*- ############ # # .zshenv @@ -7,5 +8,20 @@ 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!