2009-09-23 00:27:28 +02:00
|
|
|
case "$TERM" in
|
|
|
|
xterm*|rxvt*)
|
|
|
|
preexec () {
|
|
|
|
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
|
|
|
}
|
|
|
|
precmd () {
|
2009-10-20 00:24:21 +02:00
|
|
|
oh_my_zsh_theme_precmd
|
2009-09-23 00:27:28 +02:00
|
|
|
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 () {
|
2009-10-20 00:24:21 +02:00
|
|
|
oh_my_zsh_theme_precmd
|
2009-09-23 00:27:28 +02:00
|
|
|
echo -ne "\ekzsh\e\\"
|
|
|
|
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
|
|
|
}
|
|
|
|
;;
|
|
|
|
esac
|