summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-12-07 20:59:00 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-12-07 20:59:41 +0100
commite6863595bf8a2d88c33d72aae9995561b8e269f1 (patch)
tree9c8817d1caf626f817eb9897770000a3bb50c35a /zshrc
parent21b8518d20ae44e125e1a91459a9e968f86e82bd (diff)
downloaddotfiles-e6863595bf8a2d88c33d72aae9995561b8e269f1.tar.xz
emacs: fix 256 colors support in screen
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc4
1 files changed, 2 insertions, 2 deletions
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`