228d44d55d812725c3c0c26655b28c72eddb4ba6
- Author
- EraPartner <152506497+EraPartner@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(eza): add icons option (#12469)
Co-authored-by: Computer <computer@MAI.local>
Diff
1diff --git a/plugins/eza/README.md b/plugins/eza/README.md
2index 5de935c2c81e85827a2a17822cb2520251c006ba..6fc113ebaf3bb293a7aecc767d44e8b777890110 100644
3--- a/plugins/eza/README.md
4+++ b/plugins/eza/README.md
5@@ -55,6 +55,16 @@ If `yes` (default), always add `-g` flag to show the group ownership.
6
7 Default: `yes`
8
9+### `icons`
10+
11+```zsh
12+zstyle ':omz:plugins:eza' 'icons' yes|no
13+```
14+
15+If `yes`, sets the `--icons` option of `eza`, adding icons for files and folders.
16+
17+Default: `no`
18+
19 ### `size-prefix`
20
21 ```zsh
22diff --git a/plugins/eza/eza.plugin.zsh b/plugins/eza/eza.plugin.zsh
23index 6d7f720bd98d0fe7135ec56ef04381ce725a4a91..79f5a0f71e942463cf4013f4d52c2794e474c083 100644
24--- a/plugins/eza/eza.plugin.zsh
25+++ b/plugins/eza/eza.plugin.zsh
26@@ -31,6 +31,9 @@ function _configure_eza() {
27 if zstyle -t ':omz:plugins:eza' 'git-status'; then
28 _EZA_TAIL+=("--git")
29 fi
30+ if zstyle -t ':omz:plugins:eza' 'icons'; then
31+ _EZA_TAIL+=("--icons")
32+ fi
33 zstyle -s ':omz:plugins:eza' 'time-style' _val
34 if [[ $_val ]]; then
35 _EZA_TAIL+=("--time-style='$_val'")