Add header config knob

This commit is contained in:
Pandu POLUAN 2024-02-28 10:55:37 +07:00
commit e3cfce0dd5
2 changed files with 14 additions and 0 deletions

View file

@ -25,6 +25,17 @@ If `true`, directories will be grouped first.
Default: `false`
### `header`
```zsh
zstyle ':omz:plugins:eza' 'header' $BOOL
```
If `true`, always add `-h` flag to add a header row for each column.
Default: `false`
### `showgroup`
```zsh

View file

@ -12,6 +12,9 @@ function _configure_eza() {
if zstyle -T ':omz:plugins:eza' 'showgroup'; then
_EZA_HEAD+=("g")
fi
if zstyle -t ':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")