Home

Awesome

Eza-zsh Plugin

Eza aliases plugin for zsh.

This plugin defines useful aliases that can be used for eza the moden alternative of ls. It is a fork from my exa-zsh but exa is now deprecated.

Installation

This plugin is written with MacOS in mind. but it should work on any unix based OS.

  1. First, Install eza
brew install eza
  1. Clone this repository into zsh plugins folder
     cd ~/.oh-my-zsh/custom/plugins
     git clone https://github.com/MohamedElashri/eza-zsh
    

or

cd $ZSH_CUSTOM/plugins/
git clone https://github.com/MohamedElashri/eza-zsh

or

git clone https://github.com/MohamedElashri/eza-zsh  ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/eza-zsh
  1. Add the plugin to /.zshrc

    You should add eza-zsh to the plugin list

    plugins=(... eza-zsh)

  2. Restart the terminal session

Usage/Examples

This project contain some useful aliasses that you can run in your terminal that zsh supported like ITerm2.

You can type in the alias in your terminal. This is a list of available aliasses.

AliasCommandDescription
lsezaBasic replacement for ls with eza; allows all other eza arguments
leza --long -bFExtended details with binary sizes and type indicators
lleza --long -aLong format, including hidden files
llmeza --long -a --sort=modifiedLong format, including hidden files, sorted by modification date
laeza -a --group-directories-firstShow all files, with directories listed first
lxeza -a --group-directories-first --extendedShow all files and extended attributes, directories first
treeeza --treeTree view
lSeza --onelineDisplay one entry per line
lTeza --tree --longTree view with extended details
lreza --recurse --allRecursively list all files, including hidden ones
lgeza --grid --color=alwaysDisplay entries as a grid with color
ldeza --only-dirsList only directories
lfeza --only-filesList only files
lCeza --color-scale=size --longUse color scale based on file size
lieza --icons=always --gridDisplay with icons in grid format
lheza --hyperlink --allDisplay all entries as hyperlinks
lXeza --acrossSort the grid across, rather than downwards
lteza --long --sort=typeSort by file type in long format
lsizeeza --long --sort=sizeSort by size in long format
lmodeza --long --modified --sort=modifiedSort by modification date in long format, using the modified timestamp
ldeptheza --level=2Limit recursion depth to 2
lignoreeza --git-ignoreIgnore files mentioned in .gitignore
lcontexteza --long --contextShow security context

Contributing

Contributions are always welcome!

Pull requests are welcome. I will try to they are compatible.

Please make sure to update tests as appropriate.

Authors

License

MIT