Как установить eza и zoxide: современный ls, умный cd, алиасы shell
eza для списков, zoxide — прыжок командой z в частые каталоги.
Default ls -la and long cd paths eat attention in every terminal session. eza is a modern ls with colors, Git status, and tree views; zoxide learns directories you visit so z foo jumps without typing the full path.
Searchers looking for установка eza zoxide умный cd алиасы shell need: install both CLIs on macOS/Linux, run zoxide init in zsh/bash, and wire a few alias lines for ll and listing. Follow the GitHub READMEs for eza-community/eza and ajeetdsouza/zoxide.
Кому полезно
Developers on many repos
eza --git surfaces untracked files; zoxide hops between ~/src/acme/web and ~/work/acme-api without endless tab completion.
New machine setup
Drop aliases in ~/.zshrc and every new terminal gets modern listing plus smart cd. The zoxide database lives locally — back it up with dotfiles.
People still on plain ls/cd
Adopt gradually: use eza only as ll, keep plain cd until z feels reliable; optional alias cd='z' later.
Установка eza и zoxide
- 1
macOS: Homebrew
brew install eza zoxide. Open a new terminal and runeza --versionandzoxide --version. - 2
Debian / Ubuntu
Some releases ship
ezain apt; otherwise use cargo or release binaries per the eza README. Install zoxide via the README install script orapt install zoxidewhen available. - 3
Fedora / Arch
Typical:
sudo dnf install eza zoxideorsudo pacman -S eza zoxide. Verify with--version. - 4
Enable zoxide (required)
Add
eval "$(zoxide init zsh)"oreval "$(zoxide init bash)"to your rc file, thensourceit. For fish:zoxide init fish | source.
Use eza as a modern ls
Common flags (see eza README):
eza -l --git --icons
eza -T --level=2
eza -la --sort=modifiedPrefer aliases instead of replacing system ls globally:
alias ls='eza --icons'
alias ll='eza -la --git --icons'
alias lt='eza -T --level=2 --icons'zoxide: smart cd basics
- 1
cd normally first
zoxide scores paths you visit. After a few trips to a project root,
z fragmentgets accurate. - 2
zandziz webjumps to the best match;ziopens interactive pick (often needs fzf — see docs). - 3
Optional: alias cd
alias cd='z'sends everycdthrough zoxide; skip this if scripts rely on classiccdbehavior. - 4
Inspect and prune
zoxide querylists scores;zoxide remove pathdrops bad entries. The DB is per user — see FAQ for backup.
| Tool | Replaces | Typical use |
|---|---|---|
| eza | ls -la | ll, eza -T |
| zoxide | Long cd | z foo, zi |
| alias | Repeated flags | alias ..='cd ..' |
zoxide handles directory jumps, not file search — keep fzf or
findfor paths. Pair with Atuin/fzf for history: eza for the current folder, zoxide for favorites, fzf for pickers.
To pair on dotfiles or project paths, open a browser room from the главная wbroom — создание и вход в комнату.
Частые вопросы
How does eza relate to exa?
eza continues the exa lineage as a modern ls. Do not enable two competing aliases — pick one binary.
Do I install zoxide on SSH hosts too?
Yes — z is a shell hook on each machine. Remote sessions need zoxide installed and initialized there; databases are local unless you add sync.
zsh or bash rc file?
Match your login shell (echo $SHELL): ~/.zshrc for zsh, ~/.bashrc for bash (macOS login bash may use ~/.bash_profile).
Conflict with autojump or fzf Alt+C?
Pick one jump tool (autojump vs zoxide). fzf Alt+C is ad-hoc directory pick; zoxide learns frequency — they can coexist on different keys.