diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-12-07 20:59:00 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-12-07 20:59:41 +0100 |
commit | e6863595bf8a2d88c33d72aae9995561b8e269f1 (patch) | |
tree | 9c8817d1caf626f817eb9897770000a3bb50c35a /zshrc | |
parent | 21b8518d20ae44e125e1a91459a9e968f86e82bd (diff) | |
download | dotfiles-e6863595bf8a2d88c33d72aae9995561b8e269f1.tar.xz |
emacs: fix 256 colors support in screen
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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` |