From: Simon Ruderich Date: Sat, 24 Apr 2010 22:56:25 +0000 (+0200) Subject: zsh/rc: Fix title when using screen. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=eeab5490994eefc79d00c92d04ddcc31f64c6426;p=config%2Fdotfiles.git zsh/rc: Fix title when using screen. This bug was introduced in 81fe12757189bc144a22271f5bc669dd98ea2c37. --- 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