Add size-prefix config knob

This commit is contained in:
Pandu POLUAN 2024-02-28 11:10:11 +07:00
commit 8a2725a170
2 changed files with 27 additions and 0 deletions

View file

@ -15,6 +15,18 @@ function _configure_eza() {
if zstyle -t ':omz:plugins:eza' 'header'; then
_EZA_HEAD+=("h")
fi
zstyle -s ':omz:plugins:eza' 'size-prefix' _val
case "${_val:l}" in
binary)
_EZA_HEAD+=("b")
;;
none)
_EZA_HEAD+=("B")
;;
esac
if zstyle -s ':omz:plugins:eza' 'header'; then
_EZA_HEAD+=("h")
fi
# Get the tail long-options
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
_EZA_TAIL+=("--group-directories-first")