From 9afa45be5bdd161ff78de40d1daf113e6c85aaee Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 21 Jun 2010 14:47:08 +0200 Subject: [PATCH] zsh/rc: Use @:!hostname for remote root screens in window_preexec. --- zsh/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/rc b/zsh/rc index 9dd47a4..4620ef4 100644 --- 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 commands. + elif [[ $program_name == @!screen ]]; then + program_name="@:!${$(hostname)//.*/}" fi fi -- 2.45.2