feat(lib): support for tmux pane title (#11150)

This commit is contained in:
Latif Sulistyo
2026-09-14 05:57:08 -07:00
committed by GitHub
parent 3258baa8b4
commit 1b72d609b4
+2 -1
View File
@@ -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