Giter Club home page Giter Club logo

zsh-aliases-eza's Introduction

zsh-aliases-eza

Purpose

This zsh plugin enables a number of aliases extending eza, the modern replacement for ls.

Use

To use it, you should first install eza. You can do so easily using Homebrew on the Mac:

brew install eza

Next, download this repo into your custom plugins directory. For my installation using Oh My Zsh, I cloned the repo to ~/.oh-my-zsh/custom/plugins.

Lastly, add zsh-aliases-eza to the plugins array of your zshrc file:

plugins=(... zsh-aliases-eza)

Restart your zsh session, and the aliases will be available.

Aliases

# general use
alias ls='eza'                                                          # ls
alias l='eza -lbF --git'                                                # list, size, type, git
alias ll='eza -lbGF --git'                                             # long list
alias llm='eza -lbGd --git --sort=modified'                            # long list, modified date sort
alias la='eza -lbhHigUmuSa --time-style=long-iso --git --color-scale'  # all list
alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale' # all + extended list

# specialty views
alias lS='eza -1'                                                              # one column, just names
alias lt='eza --tree --level=2'                                         # tree

Note: the -d option removes the display of files, filtering it to only show directories. I cannot identify a time when I want that, so I have not included it.

Next Steps

  • Add in zshrc options to configure options
    1. color
    2. date format
    3. alias profiles
    4. including git column
  • Create function to configure different profiles of aliases, so that different alias groups can be enabled. For example, one profile may be for replacing ls, another may leave those commands alone and use ones based on eza only.

Thanks

Big thanks to Oh My Zsh, Homebrew, and Exa/Eza for these terrific tools. They have made the command line fun again.

Contributors

zsh-aliases-eza's People

Contributors

darrintisdale avatar rockerboo avatar

Stargazers

 avatar

Watchers

 avatar

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.