Skip to content

Boost Your Terminal Workflow with Eza (better ls) and Zoxide (better cd)

Published:  at 11:09 AM
Table of Contents

When working in the terminal, two of the most frequently used commands are ls (listing files) and cd (changing directories). While the default versions get the job done, there are modern alternatives that make terminal navigation faster, smarter, and more visually appealing.

Install Eza

To install Eza with Homebrew:

brew install eza

You can also replace your default ls command with an alias in ~/.zshrc:

# ---- Eza (better ls) -----
alias ls="eza --icons=always"

Now, whenever you type ls, you’ll get a much more readable and informative directory listing.

Install Zoxide (better cd)

Install it with Homebrew:

brew install zoxide

Then add the following to your ~/.zshrc:

# ---- Zoxide (better cd) ----
eval "$(zoxide init zsh)"

If you prefer to keep using the cd command as muscle memory, you can alias it to z:

# ---- Zoxide (better cd) ----
eval "$(zoxide init zsh)"

alias cd="z"

⚠️ Note: If you alias cd directly to z and use it with Claude Code, you may run into some quirks. I’ll cover the issue and its solution in a separate post.

Don’t forget to reload your shell:

source ~/.zshrc

Now you can type z projects (or any substring of the directory name), and Zoxide will take you straight there without needing the full path.

Resources