Skip to content
forked from z-shell/zsh-eza

⚙️ Zsh plugin to replace command gnu/ls with ogham/exa

License

Notifications You must be signed in to change notification settings

zplugin/zsh-exa

 
 

Repository files navigation

Default settings

Sets paramters and aliases for exa to replace ls, enable auto list directories on cd with export AUTOCD=1.

Parameters

exa_params=('--git' '--icons' '--classify' '--group-directories-first' '--time-style=long-iso' '--group' '--color-scale')

Aliases

alias ls='exa $exa_params'
alias l='exa --git-ignore $exa_params'
alias ll='exa --all --header --long $exa_params'
alias llm='exa --all --header --long --sort=modified $exa_params'
alias la='exa -lbhHigUmuSa'
alias lx='exa -lbhHigUmuSa@'
alias lt='exa --tree $exa_params'
alias tree='exa --tree $exa_params'

Install

The exa should be present to use this plugin. Install exa with Zi:

zi ice from'gh-r' as'program' sbin'**/exa -> exa' atclone'cp -vf completions/exa.zsh _exa'
zi light ogham/exa

With Zi

To install add to the .zshrc file:

zi light zplugin/zsh-exa

Install only if exa exists and enable auto list directories:

zi ice has'exa' atinit'AUTOCD=1'
zi light zplugin/zsh-exa

Install only if exa exists and enable auto list directories in turbo mode:

zi ice wait lucid has'exa' atinit'AUTOCD=1'
zi light zplugin/zsh-exa

Install only if exa exists and enable auto list directories in turbo mode with the for syntax:

zi wait lucid for \
  has'exa' atinit'AUTOCD=1' \
    zplugin/zsh-exa

Clone the repository and add zsh-exa to the plugins array of your zshrc file:

~/.oh-my-zsh/custom/plugins
plugins=(... zsh-exa)

With Zplug

Add zplug zplugin/zsh-exa to your ~/.zshrc and re-open your terminal session.

About

⚙️ Zsh plugin to replace command gnu/ls with ogham/exa

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 100.0%