]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Minor documentation fix.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 9dd47a49795fa36538169d996a331b5a3f7cc9aa..b0da57812b5033f6511e5314cdf08e80dd9161d8 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -373,6 +373,9 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then
             # in the term/outer screen.
             if [[ $program_name == @screen ]]; then
                 program_name="@:${$(hostname)//.*/}"
+            # Use "@:!hostname" for root screens.
+            elif [[ $program_name == @!screen ]]; then
+                program_name="@:!${$(hostname)//.*/}"
             fi
         fi