Logo

dev-resources.site

for different kinds of informations.

Transform Your Terminal with eza: The Upgrade ls Deserved

Published at
11/28/2024
Categories
productivity
opensource
terminal
macos
Author
fabaguirre
Author
10 person written this
fabaguirre
open
Transform Your Terminal with eza: The Upgrade ls Deserved

If you’re comfortable using ls to navigate your filesystem, you already know how valuable it is for working in the terminal. But sometimes, ls feels a bit outdated. eza is a modern alternative that enhances the experience by introducing features like icons, better color schemes, and additional metadata without sacrificing performance.

eza is fast, lightweight, and packed with features that make your terminal more informative and visually appealing. Whether you’re listing files for quick inspection or reviewing the state of your project, eza ensures you’ll never want to go back to ls.

What Makes eza Special?

eza takes everything we love about ls and improves it with thoughtful features like:

  • Icons: Add visual context for file types, making it easier to scan through directories (with a compatible font).
  • Color-enhanced output: File types, permissions, and metadata are highlighted for better readability.
  • Group directories first: A cleaner organization for your file listings.
  • Git integration: Shows changes in tracked files when inside a Git repository.
  • Detailed metadata: Permissions, file sizes, and more are clearly displayed.

Here's an example of eza in action:

Terminal output showing a colorful directory listing with icons, grouped directories, Git status indicators, and file metadata displayed using the eza command

Notice how directories are grouped, icons make identification faster, and colors enhance readability.

How to Install eza

Installing eza depends on your operating system. Here are the most common methods:

  • macOS (Homebrew):
brew install eza
Enter fullscreen mode Exit fullscreen mode
  • Linux (Debian/Ubuntu):

Add the repository as described in the official documentation, then run:

sudo apt install eza
Enter fullscreen mode Exit fullscreen mode
  • Using Rust (Cargo):

If you have Rust installed:

cargo install eza
Enter fullscreen mode Exit fullscreen mode

Check the official site for more installation options on platforms like Arch Linux, Fedora, or even Windows.

My Favorite Aliases for eza

Using eza is great, but setting up aliases can make it even better. Here are the ones I use every day:

alias l='eza --color=always --color-scale=all --color-scale-mode=gradient --icons=always --group-directories-first'
alias ll='eza --color=always --color-scale=all --color-scale-mode=gradient --icons=always --group-directories-first -l --git -h'
alias la='eza --color=always --color-scale=all --color-scale-mode=gradient --icons=always --group-directories-first -a'
alias lla='eza --color=always --color-scale=all --color-scale-mode=gradient --icons=always --group-directories-first -a -l --git -h'
Enter fullscreen mode Exit fullscreen mode
  • l: A compact, colorful view that includes icons and groups directories at the top.
  • ll: Adds a detailed view with permissions, file sizes, and Git status for tracked files.
  • la: Displays hidden files (dotfiles) along with the standard compact view.
  • lla: Combines the detailed view, hidden files, and Git status for a comprehensive listing.

I’ve also created a repository of aliases that includes a guide to set these up and many more. Feel free to check it out!

An Upgrade Your Terminal Deserves

eza is more than a simple replacement for ls. It’s a complete upgrade that brings clarity and style to your terminal workflow. From better organization to Git integration, it’s a tool designed for developers who spend a lot of time in the terminal.

Try it out, customize it to your needs, and see how it transforms the way you interact with your filesystem. Once you’ve experienced what eza offers, you won’t look back.

macos Article's
30 articles in total
Favicon
Building a BLE Real-Time macOS Menu Bar App
Favicon
From Core Audio to LLMs: Native macOS Audio Capture for AI-Powered Tools
Favicon
New version for my osxiec project
Favicon
Setting Up NeoVim + LazyVim on My New Mac Mini M4 💻✨
Favicon
Mixing Objective-C and C++ in macOS to Build a Camera-Based Barcode Scanner
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Fixing docker's malware warning on macOS Sequoia
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Developing on MacOS - Best practices
Favicon
How to Transfer PostgreSQL Database from Local to Supabase on macOS
Favicon
Customize iTerm
Favicon
Using Vim Navigation (h, j, k, l) as Arrow Keys on Mac with Karabiner-Elements
Favicon
How to Run Safari Browser without CORS Restriction
Favicon
A python script to uninstall pkg on MacOS
Favicon
Synchronized 变量在不同操作系统的不同行为
Favicon
How to Build a macOS Barcode Scanner App Using SwiftUI and C++ Barcode SDK from Scratch
Favicon
Transform Your Terminal with eza: The Upgrade ls Deserved
Favicon
The Ultimate Hack to Simplify Ctrl and Cmd Shortcuts Between Windows and Mac
Favicon
อัพเดทเวอร์ชั่น Container runtime Colima
Favicon
Resolving MongoDB Error When Starting with Homebrew on macOS
Favicon
Allowing any app on macOS
Favicon
Installing Go on Windows 11 in One Command
Favicon
How to Run Google Chrome without CORS Error
Favicon
Hot Keys on Mac
Favicon
Must-have apps and services in 2024
Favicon
App Permissions on macOS Sequoia
Favicon
Proxy macOS traffic + spoofDPI of direct connections
Favicon
Hacking WKWebview and WebContainers // or WebContainers are we there yet?
Favicon
How to Fix MySQL Not Running on macOS Sequoia 15.0
Favicon
How to Set Up MySQL to Autostart on macOS: A Step-by-Step Guide for Developers

Featured ones: