summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
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`