]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Fix title when using screen.
authorSimon Ruderich <simon@ruderich.org>
Sat, 24 Apr 2010 22:56:25 +0000 (00:56 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 24 Apr 2010 22:56:25 +0000 (00:56 +0200)
This bug was introduced in 81fe12757189bc144a22271f5bc669dd98ea2c37.

zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 94d7fe37208874c0b79a2cafb23414ce24f41568..cfd3f432c4a76247e64d4e301a619d7d00906c7c 100644 (file)
--- 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