1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-13 16:04:08 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Latif Sulistyo
920a800eee
Merge b053f89de0 into ddec79ad43 2025-12-08 12:49:18 +01:00
Latif Sulistyo
b053f89de0 feat(lib): support for tmux pane title 2022-09-05 08:33:01 +07:00

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