From b776b3df6115a04faaecad05729c1456b38534cd Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Mon, 1 Dec 2025 10:19:00 -0500 Subject: [PATCH] zsh: improve minimum version check - Handle autoload failures - Prefer ">&2" to "/dev/stderr" for portability - Quote commands for consistency and to avoid alias conflicts --- src/shell-integration/zsh/.zshenv | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shell-integration/zsh/.zshenv b/src/shell-integration/zsh/.zshenv index 3332b1c1f..4201b295c 100644 --- a/src/shell-integration/zsh/.zshenv +++ b/src/shell-integration/zsh/.zshenv @@ -43,9 +43,8 @@ fi [[ ! -r "$_ghostty_file" ]] || 'builtin' 'source' '--' "$_ghostty_file" } always { if [[ -o 'interactive' ]]; then - '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' 'autoload' '--' 'is-at-least' 2>/dev/null && 'is-at-least' "5.1" || { + 'builtin' 'echo' "zsh ${ZSH_VERSION} is too old for ghostty shell integration" >&2 'builtin' 'unset' '_ghostty_file' return }