]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Fix title when using screen.
[config/dotfiles.git] / 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