X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ad8b383d21775f621bab9a72a76413fc9fdd00ef..08d8972a405e57c7724e9d7fe7529ee32bd14d25:/.zsh/zshrc/80_xtermtitle?ds=sidebyside diff --git a/.zsh/zshrc/80_xtermtitle b/.zsh/zshrc/80_xtermtitle index e700aa1..8059ca8 100644 --- a/.zsh/zshrc/80_xtermtitle +++ b/.zsh/zshrc/80_xtermtitle @@ -1,11 +1,11 @@ -# zterm-title +# zshrc/80_xtermtitle # # Fancy setting of the xterm title # # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: http://git.madduck.net/v/etc/zsh.git +# Source repository: git://git.madduck.net/etc/zsh.git # # Based on http://www.zshwiki.org/cgi-bin/wiki.pl?ZshHardStatus # @@ -27,11 +27,13 @@ __get_session_flags() { local flags; flags= [ -n "$DISPLAY" ] && flags="${flags}x" [ -n "$SSH_AUTH_SOCK" ] && flags="${flags}a" + [[ $SSH_CLIENT = *:* ]] && flags="${flags}6" [ -n "$flags" ] && echo "[${flags}]" } __get_standard_prompt() { - print -P "%m%#%25\<..\<%~ $(__get_session_flags)" + [[ -z $SSH_CLIENT ]] || print -nP "%m" + print -P "%#%25\<..\<%~ $(__get_session_flags)" } _set_plain_xterm_title() {