mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
Use zstyle -T|-t to allow bool-ish values
This commit is contained in:
parent
ab33b5d274
commit
c7c7dd81ac
2 changed files with 6 additions and 8 deletions
|
|
@ -9,13 +9,11 @@ typeset -a _EZA_TAIL
|
|||
function _configure_eza() {
|
||||
local _val
|
||||
# Get the head flags
|
||||
zstyle -s ':omz:plugins:eza' 'showgroup' _val
|
||||
if [[ -z $_val || $_val == 1 ]]; then
|
||||
if zstyle -T ':omz:plugins:eza' 'showgroup'; then
|
||||
_EZA_HEAD+=("g")
|
||||
fi
|
||||
# Get the tail long-options
|
||||
zstyle -s ':omz:plugins:eza' 'dirs-first' _val
|
||||
if [[ $_val == 1 ]]; then
|
||||
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
||||
_EZA_TAIL+=("--group-directories-first")
|
||||
fi
|
||||
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue