X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=b0da57812b5033f6511e5314cdf08e80dd9161d8;hb=2883b26b545153c1c5da87a3244af9518420b025;hp=9dd47a49795fa36538169d996a331b5a3f7cc9aa;hpb=056def611aff9eb03503133c9e7a84efb9218355;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 9dd47a4..b0da578 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 screens. + elif [[ $program_name == @!screen ]]; then + program_name="@:!${$(hostname)//.*/}" fi fi