mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
Add header config knob
This commit is contained in:
parent
a632f070e8
commit
e3cfce0dd5
2 changed files with 14 additions and 0 deletions
|
|
@ -25,6 +25,17 @@ If `true`, directories will be grouped first.
|
||||||
Default: `false`
|
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`
|
### `showgroup`
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ function _configure_eza() {
|
||||||
if zstyle -T ':omz:plugins:eza' 'showgroup'; then
|
if zstyle -T ':omz:plugins:eza' 'showgroup'; then
|
||||||
_EZA_HEAD+=("g")
|
_EZA_HEAD+=("g")
|
||||||
fi
|
fi
|
||||||
|
if zstyle -t ':omz:plugins:eza' 'header'; then
|
||||||
|
_EZA_HEAD+=("h")
|
||||||
|
fi
|
||||||
# Get the tail long-options
|
# Get the tail long-options
|
||||||
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
||||||
_EZA_TAIL+=("--group-directories-first")
|
_EZA_TAIL+=("--group-directories-first")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue