parent
65bbe3fa6a
commit
82e2883a41
@ -1,16 +1,21 @@
|
|||||||
# Specific to xterms, such as OS X terminal
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
if [[ "${TERM}" == xterm* ]]; then
|
preexec () {
|
||||||
unset TMOUT
|
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
||||||
|
}
|
||||||
precmd () {
|
precmd () {
|
||||||
print -Pn "\033]0;%n@%m %~\007"
|
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
||||||
#print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
|
|
||||||
}
|
}
|
||||||
|
;;
|
||||||
|
screen*)
|
||||||
preexec () {
|
preexec () {
|
||||||
print -Pn "\033]0;%n@%m <$1> %~\007"
|
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
|
||||||
#print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
|
echo -ne "\ek$CMD\e\\"
|
||||||
|
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
||||||
|
}
|
||||||
|
precmd () {
|
||||||
|
echo -ne "\ekzsh\e\\"
|
||||||
|
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
||||||
}
|
}
|
||||||
|
;;
|
||||||
fi
|
esac
|
Loading…
Reference in new issue