mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
feat(eza): add icons option (#12469)
Co-authored-by: Computer <computer@MAI.local>
This commit is contained in:
@@ -55,6 +55,16 @@ If `yes` (default), always add `-g` flag to show the group ownership.
|
|||||||
|
|
||||||
Default: `yes`
|
Default: `yes`
|
||||||
|
|
||||||
|
### `icons`
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
zstyle ':omz:plugins:eza' 'icons' yes|no
|
||||||
|
```
|
||||||
|
|
||||||
|
If `yes`, sets the `--icons` option of `eza`, adding icons for files and folders.
|
||||||
|
|
||||||
|
Default: `no`
|
||||||
|
|
||||||
### `size-prefix`
|
### `size-prefix`
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ function _configure_eza() {
|
|||||||
if zstyle -t ':omz:plugins:eza' 'git-status'; then
|
if zstyle -t ':omz:plugins:eza' 'git-status'; then
|
||||||
_EZA_TAIL+=("--git")
|
_EZA_TAIL+=("--git")
|
||||||
fi
|
fi
|
||||||
|
if zstyle -t ':omz:plugins:eza' 'icons'; then
|
||||||
|
_EZA_TAIL+=("--icons")
|
||||||
|
fi
|
||||||
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
||||||
if [[ $_val ]]; then
|
if [[ $_val ]]; then
|
||||||
_EZA_TAIL+=("--time-style='$_val'")
|
_EZA_TAIL+=("--time-style='$_val'")
|
||||||
|
|||||||
Reference in New Issue
Block a user