From b053f89de09d94300f08158d4147a4e73f6617cc Mon Sep 17 00:00:00 2001 From: Latif Sulistyo Date: Mon, 5 Sep 2022 08:12:58 +0700 Subject: [PATCH] feat(lib): support for tmux pane title --- lib/termsupport.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 80ca7ef78..831715bb3 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -22,7 +22,8 @@ function title { print -Pn "\e]1;${1:q}\a" # set tab name ;; screen*|tmux*) - print -Pn "\ek${1:q}\e\\" # set screen hardstatus + print -Pn "\e]2;${2:q}\e\\" # set tmux pane title + print -Pn "\ek${1:q}\e\\" # set screen hardstatus/tmux window name if `allow-rename` is on ;; *) if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then