aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index dd2bc78..eb86e8e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -352,8 +352,10 @@ bindkey '\e[6~' down-history # PageDown
precmd() {
# [[ -t 1 ]] || return
case $TERM in
- *xterm*|rxvt*|screen*) print -Pn "\e]2;%n@%m:%~\a"
- ;;
+ *xterm*|rxvt*) print -Pn "\e]2;%n@%m:%~\a"
+ ;;
+ screen*) print -Pn "\ek%n@%m:%~\a"
+ ;;
esac
}
@@ -361,8 +363,10 @@ precmd() {
preexec() {
# [[ -t 1 ]] || return
case $TERM in
- *xterm*|rxvt*|screen*) print -Pn "\e]2;$1\a"
- ;;
+ *xterm*|rxvt*) print -Pn "\e]2;$1\a"
+ ;;
+ screen*) print -Pn "\ek$1\a"
+ ;;
esac
}