feat(eza): add smart-group option (#13857)

This commit is contained in:
Brennan Lujan
2026-08-05 13:05:18 +02:00
committed by GitHub
parent ed19f8ffcf
commit bc0d7fa6ab
2 changed files with 11 additions and 4 deletions
+9 -3
View File
@@ -9,9 +9,15 @@ typeset -a _EZA_TAIL
function _configure_eza() {
local _val
# Get the head flags
if zstyle -T ':omz:plugins:eza' 'show-group'; then
_EZA_HEAD+=("g")
fi
zstyle -s ':omz:plugins:eza' 'show-group' _val
case "${_val:l}" in
yes)
_EZA_HEAD+=("g")
;;
smart)
_EZA_TAIL+=("--smart-group")
;;
esac
if zstyle -t ':omz:plugins:eza' 'header'; then
_EZA_HEAD+=("h")
fi