https://github.com/z-shell/zsh-eza
⚙️ Zsh plugin to replace command gnu/ls with eza-community/eza
https://github.com/z-shell/zsh-eza
eza zsh-plugin zshell
Last synced: 8 months ago
JSON representation
⚙️ Zsh plugin to replace command gnu/ls with eza-community/eza
- Host: GitHub
- URL: https://github.com/z-shell/zsh-eza
- Owner: z-shell
- License: mit
- Created: 2022-04-27T13:17:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T14:47:28.000Z (8 months ago)
- Last Synced: 2025-04-06T20:52:15.347Z (8 months ago)
- Topics: eza, zsh-plugin, zshell
- Language: Shell
- Homepage: https://wiki.zshell.dev
- Size: 112 KB
- Stars: 81
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: docs/README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - eza (z-shell) - Replaces `ls` with [eza-community/eza](https://github.com/eza-community/eza). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - eza (z-shell) - Replaces `ls` with <b><code> 18395⭐</code></b> <b><code> 350🍴</code></b> [eza-community/eza](https://github.com/eza-community/eza)). (Plugins / ZSH on Windows)
README
❮ Zsh eza ❯
Zsh plugin which replace GNU/ls with eza-community/eza
《❔》Ask a Question
《💡》Search Wiki
《💜》Join
《🌐》Localize
### Environment variables
| Variable | Description | Default |
| ------------- | -------------- | -------------- |
| _EZA_PARAMS | eza params to be used | `('--git' '--group' '--group-directories-first' '--time-style=long-iso' '--color-scale=all' '--icons')` |
| AUTOCD | enable auto list directories on `cd` | 0 |
### Aliases
```shell
alias ls='eza $eza_params'
alias l='eza --git-ignore $eza_params'
alias ll='eza --all --header --long $eza_params'
alias llm='eza --all --header --long --sort=modified $eza_params'
alias la='eza -lbhHigUmuSa'
alias lx='eza -lbhHigUmuSa@'
alias lt='eza --tree $eza_params'
alias tree='eza --tree $eza_params'
```
## Install
The `eza` should be present to use this plugin. Install `eza` with Zi:
```shell
zi ice from'gh-r' as'program' sbin'**/eza -> eza' atclone'cp -vf completions/eza.zsh _eza'
zi light eza-community/eza
```
### With [Zi](https://github.com/z-shell/zi)
To install add to the `.zshrc` file:
```shell
zi light z-shell/zsh-eza
```
Install only if eza exists and enable auto list directories:
```shell
zi ice has'eza' atinit'AUTOCD=1'
zi light z-shell/zsh-eza
```
Install only if eza exists and enable auto list directories in turbo mode:
```shell
zi ice wait lucid has'eza' atinit'AUTOCD=1'
zi light z-shell/zsh-eza
```
Install only if eza exists and enable auto list directories in turbo mode with the for syntax:
```shell
zi wait lucid for \
has'eza' atinit'AUTOCD=1' \
z-shell/zsh-eza
```
### With [Oh My Zsh](https://ohmyz.sh/)
Clone the repository and add `zsh-eza` to the plugins array of your zshrc file:
```sh
~/.oh-my-zsh/custom/plugins
```
```sh
plugins=(... zsh-eza)
```
### With Zplug
Add `zplug z-shell/zsh-eza` to your `~/.zshrc` and re-open your terminal session.