summaryrefslogtreecommitdiff
path: root/plugins/eza
diff options
context:
space:
mode:
authorEraPartner <152506497+EraPartner@users.noreply.github.com>2024-06-04 13:54:42 +0000
committerGitHub <noreply@github.com>2024-06-04 15:54:42 +0200
commit228d44d55d812725c3c0c26655b28c72eddb4ba6 (patch)
treec58d4b6a8977a421b949bbd9059d1c15ae26167f /plugins/eza
parent695c7456d1a84697e9b86e11e839d5178cae743a (diff)
downloadzsh-228d44d55d812725c3c0c26655b28c72eddb4ba6.tar.gz
zsh-228d44d55d812725c3c0c26655b28c72eddb4ba6.tar.bz2
zsh-228d44d55d812725c3c0c26655b28c72eddb4ba6.zip
feat(eza): add icons option (#12469)
Co-authored-by: Computer <computer@MAI.local>
Diffstat (limited to 'plugins/eza')
-rw-r--r--plugins/eza/README.md10
-rw-r--r--plugins/eza/eza.plugin.zsh3
2 files changed, 13 insertions, 0 deletions
diff --git a/plugins/eza/README.md b/plugins/eza/README.md
index 5de935c2c..6fc113eba 100644
--- a/plugins/eza/README.md
+++ b/plugins/eza/README.md
@@ -55,6 +55,16 @@ If `yes` (default), always add `-g` flag to show the group ownership.
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`
```zsh
diff --git a/plugins/eza/eza.plugin.zsh b/plugins/eza/eza.plugin.zsh
index 6d7f720bd..79f5a0f71 100644
--- a/plugins/eza/eza.plugin.zsh
+++ b/plugins/eza/eza.plugin.zsh
@@ -31,6 +31,9 @@ function _configure_eza() {
if zstyle -t ':omz:plugins:eza' 'git-status'; then
_EZA_TAIL+=("--git")
fi
+ if zstyle -t ':omz:plugins:eza' 'icons'; then
+ _EZA_TAIL+=("--icons")
+ fi
zstyle -s ':omz:plugins:eza' 'time-style' _val
if [[ $_val ]]; then
_EZA_TAIL+=("--time-style='$_val'")