mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
feat(termsupport): add WezTerm window/tab title support (OSC 1, 2)
This adds TERM=wezterm to the list of supported terminals. https://wezterm.org/recipes/passing-data.html?h=osc#user-vars WezTerm uses TERM=xterm-256color by default, but it endorses users to use TERM=wezterm in their configuration: https://wezterm.org/config/lua/config/term.html With this patch, oh-my-zsh will still support setting the window and tab name.
This commit is contained in:
parent
c95509ebfd
commit
78cfcccce4
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ function title {
|
|||
: ${2=$1}
|
||||
|
||||
case "$TERM" in
|
||||
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty*|st*|foot*|contour*)
|
||||
wezterm*|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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue