From fb17c63d2c75c9bf2efb5a651bf9db46402fe1a1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 30 Sep 2008 19:30:31 +0200 Subject: [PATCH] do not include machine name when working locally --- .zsh/zshrc/80_xtermtitle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zsh/zshrc/80_xtermtitle b/.zsh/zshrc/80_xtermtitle index e41bb14..3c682ec 100644 --- a/.zsh/zshrc/80_xtermtitle +++ b/.zsh/zshrc/80_xtermtitle @@ -32,7 +32,8 @@ __get_session_flags() { } __get_standard_prompt() { - print -P "%m%#%25\<..\<%~ $(__get_session_flags)" + [[ -z $SSH_CLIENT ]] || print -P "%m" + print -P "%#%25\<..\<%~ $(__get_session_flags)" } _set_plain_xterm_title() { -- 2.39.5