Skip to content

Commit

Permalink
feat(termsupport): Support alacritty* alacritty-direct in title() fun…
Browse files Browse the repository at this point in the history
…ction (ohmyzsh#12391)
  • Loading branch information
mstfn committed May 2, 2024
1 parent 8581ecd commit 522d82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/termsupport.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function title {
: ${2=$1}

case "$TERM" in
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*|foot*|contour*)
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty*|st*|foot*|contour*)
print -Pn "\e]2;${2:q}\a" # set window name
print -Pn "\e]1;${1:q}\a" # set tab name
;;
Expand Down Expand Up @@ -129,7 +129,7 @@ fi
# Don't define the function if we're in an unsupported terminal
case "$TERM" in
# all of these either process OSC 7 correctly or ignore entirely
xterm*|putty*|rxvt*|konsole*|mlterm*|alacritty|screen*|tmux*) ;;
xterm*|putty*|rxvt*|konsole*|mlterm*|alacritty*|screen*|tmux*) ;;
contour*|foot*) ;;
*)
# Terminal.app and iTerm2 process OSC 7 correctly
Expand Down

0 comments on commit 522d82d

Please sign in to comment.