From 76b606ec597a3c0263fa60321548637451c0a547 Mon Sep 17 00:00:00 2001 From: tianrking <10758833+tianrking@users.noreply.github.com> Date: Fri, 17 Jul 2026 01:55:52 +0800 Subject: [PATCH] Guard shell integration against unset ZSH_NAME (#7942) Co-authored-by: tianrking --- assets/shell-integration/wezterm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/shell-integration/wezterm.sh b/assets/shell-integration/wezterm.sh index 3b7d95b8a..7f82c9aad 100644 --- a/assets/shell-integration/wezterm.sh +++ b/assets/shell-integration/wezterm.sh @@ -468,7 +468,7 @@ __wezterm_semantic_precmd() { __wezterm_save_ps2="$PS2" # Markup the left and right prompts so that the terminal # knows that they are semantically prompt output. - if [[ -n "$ZSH_NAME" ]] ; then + if [[ -n "${ZSH_NAME-}" ]] ; then PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a%}' PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}' else