From 9b26410d995a92502f958d385f2d8346fcb2932d Mon Sep 17 00:00:00 2001 From: Pavel R` Date: Sat, 29 Aug 2026 04:36:04 +0400 Subject: [PATCH] fix(eza): pass an explicit value to `--hyperlink` (#14024) Since eza 0.23 `--hyperlink` is an option with an optional WHEN value instead of a boolean flag, so a bare `--hyperlink` at the end of the alias consumes the following argument: $ ll ./tmp error: invalid value './tmp' for '--hyperlink []' [possible values: always, auto, never] Pass `--hyperlink=auto` (mirroring how the plugin already handles `--icons=auto`) when eza accepts it, and fall back to the bare flag on older releases. Co-authored-by: Robby Russell --- plugins/eza/eza.plugin.zsh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/eza/eza.plugin.zsh b/plugins/eza/eza.plugin.zsh index 1ee86018d..8809d8f37 100644 --- a/plugins/eza/eza.plugin.zsh +++ b/plugins/eza/eza.plugin.zsh @@ -52,8 +52,13 @@ function _configure_eza() { if [[ $_val ]]; then _EZA_TAIL+=("--time-style='$_val'") fi - if zstyle -t ":omz:plugins:eza" "hyperlink"; then - _EZA_TAIL+=("--hyperlink") + if zstyle -t ':omz:plugins:eza' 'hyperlink'; then + # eza >= 0.23 needs an explicit WHEN value + if command eza --hyperlink=auto --version &>/dev/null; then + _EZA_TAIL+=("--hyperlink=auto") + else + _EZA_TAIL+=("--hyperlink") + fi fi }