From e6863595bf8a2d88c33d72aae9995561b8e269f1 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 7 Dec 2009 20:59:00 +0100 Subject: emacs: fix 256 colors support in screen --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index f4796e9..d084b28 100644 --- a/zshrc +++ b/zshrc @@ -270,7 +270,7 @@ function precmd { # set the window title in screen to the currently running program setopt extended_glob function preexec () { - if [[ "$TERM" == "screen" ]]; then + if [[ "$TERM" == "screen-256color" ]]; then local CMD=${1[(wr)^(*=*|sudo|-*)]} echo -n "\ek$CMD\e\\" fi @@ -309,7 +309,7 @@ function setprompt () { rxvt*) PR_TITLEBAR=$'%{\e]0;%(!.*ROOT* | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\a%}' ;; - screen) + screen*) PR_TITLEBAR=$'%{\e_screen \005 (\005t) | %(!.*ROOT* |.)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\e\\%}' # ensure SSH agent is still usable after an X restart SSH_AUTH_SOCK=`find /tmp/gpg-* -name S.gpg-agent.ssh` -- cgit v1.2.3