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 }