summaryrefslogtreecommitdiff
path: root/src/shell-integration
diff options
context:
space:
mode:
authorJon Parise <jon@indelible.org>2025-08-19 10:36:26 -0400
committerJon Parise <jon@indelible.org>2025-08-19 10:36:26 -0400
commite8a60a375c2902caa4727aafa3cc61345f4085a3 (patch)
treef67f6829c7841200dae48e3d69d62e930fc0c709 /src/shell-integration
parentf430c03ff3e094fd917f10a955160884579aa143 (diff)
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.
Diffstat (limited to 'src/shell-integration')
-rw-r--r--src/shell-integration/zsh/.zshenv1
1 files changed, 1 insertions, 0 deletions
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.