From 78cfcccce4ae5c8c551e72e8f32eec11776c0dc6 Mon Sep 17 00:00:00 2001 From: tobii-dev <77458451+tobii-dev@users.noreply.github.com> Date: Sun, 18 May 2025 15:39:38 +0200 Subject: [PATCH] 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. --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index d2fbf42cd..f9102f42f 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -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 ;;