From: martin f. krafft Date: Sat, 28 Mar 2020 03:18:41 +0000 (+1300) Subject: simplify tty in xterm title X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/fae90a2a15dde4a7472a5353857f1497c63e00db?ds=sidebyside;pf=etc simplify tty in xterm title --- diff --git a/.zsh/zshrc/10-xterm_title b/.zsh/zshrc/10-xterm_title index 05da3de..82f311a 100644 --- a/.zsh/zshrc/10-xterm_title +++ b/.zsh/zshrc/10-xterm_title @@ -42,9 +42,8 @@ __get_session_flags() { __get_standard_prompt() { emulate -L zsh - print -n "[${${(%):-%l}#pts/}]" [[ -z $SSH_CLIENT ]] || print -nP "%m" - print -P "%#%25\<..\<%~ $(__get_session_flags)" + print -P "@${${(%):-%l}#pts/}%#%25\<..\<%~ $(__get_session_flags)" } _set_plain_xterm_title() {