From 8560e037bf9d0e51b550d88a04ed039c86d4ec19 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 27 Mar 2013 17:26:25 -0400 Subject: Let's hope we finally got precmd/preexec working... --- .zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.zshrc') 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 } -- cgit v1.2.3