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 |
| Zsh-z | Fast directory jumping based on frecency |
| 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 |
| 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 |
| SD | Dynamic directory navigation from the command line |
| Dongle | Move around deep directory trees |
| cdwe | cd with env vars |
| fastdiract | Quick shell navigation and command execution |
| zm | cd for lazy people |
| slingshot | Lightweight tool to browse files in the terminal |
| qcd | Quickly change directory |
| nav | Quickly navigate through directories |
| menucd | Directory browser and changer |
| kn | Navigate folders quickly |
| jmp | The superior cd |
| gump | Smarter cd command |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.