Skip to content

Commit

Permalink
feat: add title handle for kitty terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed May 20, 2024
1 parent 41eadc9 commit a957d87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zsh-tab-title.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function title {
print -Pn "\e]2;$tabTitle:q\a" # set window name
else
case "$TERM" in
xterm-kitty)
print -Pn "\e]1;$termTitle:q\a" # set window name
print -Pn "\e]2;$tabTitle:q\a" # set tab name
;;

cygwin|xterm*|putty*|rxvt*|ansi|${~ZSH_TAB_TITLE_ADDITIONAL_TERMS})
print -Pn "\e]2;$termTitle:q\a" # set window name
print -Pn "\e]1;$tabTitle:q\a" # set tab name
Expand Down

0 comments on commit a957d87

Please sign in to comment.