2 prompt1="%S!%h Z%i %(?..%{
\e[31m%})?%?%(?..%{
\e[m%}%S) L%L%s %B%n@%m:%y%b (%U%N%u $ZSH_VERSION) %B%* [%5~] %(!.#.>)%b "
5 if [ "$DISPLAY" != "" ]; then
6 #function chpwd { print -nP "\033]0;%n@%m$DISPLAY [%5~]\007" }
7 function precmd { print -nP "\033]0;%n@%m$DISPLAY [%5~] > $0\007" }
8 function preexec { print -nP "\033]0;%n@%m$DISPLAY [%5~] > $1\007" }