From e8a60a375c2902caa4727aafa3cc61345f4085a3 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Tue, 19 Aug 2025 10:36:26 -0400 Subject: [PATCH] zsh: unset _ghostty_file in the early exit path If we're running a too-old version of zsh, we exit early. This skipped the _ghostty_file cleanup path below. --- src/shell-integration/zsh/.zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell-integration/zsh/.zshenv b/src/shell-integration/zsh/.zshenv index 7fbfad659..3941e0c30 100644 --- a/src/shell-integration/zsh/.zshenv +++ b/src/shell-integration/zsh/.zshenv @@ -45,6 +45,7 @@ fi 'builtin' 'autoload' '--' 'is-at-least' 'is-at-least' "5.1" || { builtin echo "ZSH ${ZSH_VERSION} is too old for ghostty shell integration" > /dev/stderr + 'builtin' 'unset' '_ghostty_file' return } # ${(%):-%x} is the path to the current file.