From fae90a2a15dde4a7472a5353857f1497c63e00db Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 28 Mar 2020 16:18:41 +1300 Subject: [PATCH 1/1] simplify tty in xterm title --- .zsh/zshrc/10-xterm_title | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() { -- 2.39.5