Zsh-z is a command-line directory navigation tool for Zsh.
It learns from the directories you visit and uses “frecency” — a combination of frequency and recency — to predict where you want to go from a short search string. Instead of repeatedly typing long paths, you can enter a fragment such as z src and let Zsh-z choose the highest-ranked matching location. The project is a native Zsh port of rupa/z, replacing its mixture of shell code and external utilities with a pure Zsh implementation. It can use the same database as z, which makes migration straightforward and allows the two tools to coexist when different shells are used.
This is free and open source software.
Key Features
- Offers rank-only and recency-only matching modes.
- Restricts matches to subdirectories of the current directory when requested.
- Provides tab completion with results ordered by frecency.
- Runs database updates asynchronously so directory tracking does not hold up the prompt.
- Uses file locking to protect the directory database against concurrent writes from multiple shells.
- Stores the database with restrictive permissions to protect directory history on shared systems.
- Detects malformed database entries and avoids publishing incomplete writes.
- Lets users exclude selected directories from tracking.
- Supports removing individual directories or directory trees from the database.
- Can display the destination after changing directory.
- Supports custom database locations and a configurable directory-changing command.
- Avoids relying on external awk, sort, sed, date and similar commands for its normal operation.
- Handles paths containing spaces and a range of shell metacharacters.
- Provides configurable case-sensitive or case-insensitive matching.
- Can unload its alias, completion definitions and related shell state cleanly.
Website: github.com/agkozak/zsh-z
Support:
Developer: Alexandros Kozak
License: MIT License
Related Software
| Shell tools | |
|---|---|
| fzf | Command-line fuzzy finder for your shell |
| zoxide | Smarter cd command, inspired by z and autojump |
| broot | Reviewed under our Excellent Utilities series |
| McFly | Also reviewed under our Excellent Utilities series |
| z | Maintains a jump-list of the directories you actually use |
| autojump | Offers a fast way to navigate your filesystem |
| z.lua | Helps you navigate faster by learning your habits |
| HSTR | Bash and zsh shell history suggest box |
| enhancd | Next-generation cd command |
| fzy | Simple, fast fuzzy finder for the terminal |
| Navita | Rapid directory traversal |
| Jump | Quick and fuzzy directory jumper |
| walk | Simple and minimalistic terminal navigator |
| lacy | cd alternative that makes navigating much more efficient |
| DF-SHOW | Directory File Show |
| fz | Adds fuzzy search to tab completion of z |
| v | z for vim |
| pazi | Fast autojump helper |
| jumper | Files/directories jumper |
| cdhist | Linux shell cd history directory stack |
| icd | Shell utility that makes changing directories quicker and more convenient |
| fasd | Command-line productivity booster. It seeks inspiration from autojump, z and v |
| kn | Navigate folders quickly |
| Dongle | Move around deep directory trees |
| cdwe | cd with env vars |
| slingshot | Lightweight tool to browse files in the terminal |
| ff | Manage favourite folders |
| fastdiract | Quick shell navigation and command execution |
| zm | cd for lazy people |
| qcd | Quickly change directory |
| pm | Switch between projects |
| nav | Quickly navigate through directories |
| menucd | Directory browser and changer |
| jmp | The superior cd |
| gump | Smarter cd command |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.