89d86d86 | case "$TERM" in xterm*|rxvt*) preexec () { print -Pn "\e]0;%n@%m: $1\a" # xterm } precmd () { |
14a1ce80 | oh_my_zsh_theme_precmd |
89d86d86 | print -Pn "\e]0;%n@%m: %~\a" # xterm } ;; screen*) preexec () { local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} echo -ne "\ek$CMD\e\\" print -Pn "\e]0;%n@%m: $1\a" # xterm } precmd () { |
14a1ce80 | oh_my_zsh_theme_precmd |
89d86d86 | echo -ne "\ekzsh\e\\" print -Pn "\e]0;%n@%m: %~\a" # xterm } ;; esac |