# vim: fileencoding=utf-8 ft=zsh noet sw=4 ts=4 sts=4
autoload -Uz promptinit ft_vi_promptinit ft_vi_promptcolors
promptinit
setopt PROMPT_SUBST
# mode indicaton
typeset -g A psvmodetext
# check if we are running in some special mode
if (($+ZLAUNCHER)); then
prompt gentoo white
PS1="%F{green}%n@%m%f%k %B %1v>>> %#%b%f%k "
site_rc_blacklist+=site_zshrc_25_vcsinfo
elif (($+MAILZ)); then
prompt gentoo white
PS1='$(zmuch_fancy_prompt)%U${psvar[1]}: %1~%u%f%b%k> '
ft_vi_promptinit
ft_vi_promptcolors -t black green black red
site_rc_blacklist+=site_zshrc_25_vcsinfo
else
# regular prompt
prompt ccx
ft_vi_promptinit
ft_vi_promptcolors black green black red
# hardstatus / terminal title
if [[ $TERM == (xterm|rxvt|screen|Eterm|putty)* ]]; then
PS1=$'%{\e]2;%m%(!.#.:)%2~\e\\%}'"$PS1"
fi
fi
# report timing statistics for commands that take more than this, in seconds
REPORTTIME=5
TIMEFMT="$( print -P %f%B )time:$( print -P %b%F{cyan} ) %*E total %U user %S system %P cpu $( print -P %f%B )mem:$( print -P %b%F{green} ) %MM max %Xk txt %Dk res $( print -P %f%B )io:$( print -P %b%F{yellow} ) %Ii %Oo %Fpf $( print -P %b%f )%J"