Initial import of my old zshrc splitted up,
[abe:zshrc.git] / zsh.d / 10-prompt
1 # -*- sh -*-
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 "
3 prompt=$prompt1
4
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" }
9 fi
10