From eeab5490994eefc79d00c92d04ddcc31f64c6426 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 25 Apr 2010 00:56:25 +0200 Subject: [PATCH] zsh/rc: Fix title when using screen. This bug was introduced in 81fe12757189bc144a22271f5bc669dd98ea2c37. --- zsh/rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/rc b/zsh/rc index 94d7fe3..cfd3f43 100644 --- a/zsh/rc +++ b/zsh/rc @@ -539,6 +539,10 @@ source_config ~/.zsh host rc ${$(hostname)//.*/} if [[ $TERM != dumb && -z $STY ]]; then # Get running detached sessions. session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }') + + # As we exec later we have to set the title here. + window_preexec "screen" + # Create a new session if none is running. if [[ -z $session ]]; then exec screen -- 2.45.2