Skip to content

Commit

Permalink
feat(eza): add icons option (ohmyzsh#12469)
Browse files Browse the repository at this point in the history
Co-authored-by: Computer <computer@MAI.local>
  • Loading branch information
2 people authored and ttelford committed Jun 26, 2024
1 parent 3d431d0 commit ab814d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/eza/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions plugins/eza/eza.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'")
Expand Down

0 comments on commit ab814d2

Please sign in to comment.