From: Simon Ruderich Date: Mon, 21 Jun 2010 12:47:08 +0000 (+0200) Subject: zsh/rc: Use @:!hostname for remote root screens in window_preexec. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9afa45be5bdd161ff78de40d1daf113e6c85aaee;p=config%2Fdotfiles.git zsh/rc: Use @:!hostname for remote root screens in window_preexec. --- 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