GithubHelp home page GithubHelp logo

z-shell / zsh-eza Goto Github PK

View Code? Open in Web Editor NEW
43.0 2.0 9.0 112 KB

⚙️ Zsh plugin to replace command gnu/ls with eza-community/eza

Home Page: https://wiki.zshell.dev

License: MIT License

Shell 100.00%
zsh-plugin zshell eza

zsh-eza's Introduction

Default settings

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

Parameters

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

Aliases

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:

zi ice from'gh-r' as'program' sbin'**/eza -> eza' atclone'cp -vf completions/eza.zsh _eza'
zi light eza-community/eza

With Zi

To install add to the .zshrc file:

zi light z-shell/zsh-eza

Install only if eza exists and enable auto list directories:

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:

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:

zi wait lucid for \
  has'eza' atinit'AUTOCD=1' \
    z-shell/zsh-eza

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

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

With Zplug

Add zplug z-shell/zsh-eza to your ~/.zshrc and re-open your terminal session.

zsh-eza's People

Contributors

dependabot[bot] avatar joshka avatar neiromaster avatar ss-o avatar xaocon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zsh-eza's Issues

[bug]: Adding zsh-eza without eza installed prevents zsh startup

Environment

Ubuntu 23.10

Reproduction steps

1. Do not install eza yet.
2. Add z-shell/zsh-eza to your zsh plugins. For example, with antidode: `echo "z-shell/zsh-eza" >> .zsh_plugins.txt`
3. Run zsh

Expected behavior

4. zsh-eza prints an error message, but leaves zsh running

Current behavior

4. zsh-eza prints an error message and zsh exits

Code snippet

# .zshrc
source $HOME/dotfiles-packages/antidote/antidote.zsh
antidote load $HOME/.zsh_plugins.txt
# .zsh_plugins.txt
z-shell/zsh-eza

Additional information

If exec zsh is used in step 3 above in a login shell or over ssh, this will quit the shell and prevent login/ssh without working around a user's default shell.

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with the Contributor Covenant Code of Conduct?

Contact Details

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.