Folder navigation

Zsh-z – fast directory navigation for Zsh

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
fzfCommand-line fuzzy finder for your shell
zoxideSmarter cd command, inspired by z and autojump
brootReviewed under our Excellent Utilities series
McFlyAlso reviewed under our Excellent Utilities series
zMaintains a jump-list of the directories you actually use
autojumpOffers a fast way to navigate your filesystem
z.luaHelps you navigate faster by learning your habits
HSTRBash and zsh shell history suggest box
Zsh-zFast directory jumping based on frecency
enhancdNext-generation cd command
fzySimple, fast fuzzy finder for the terminal
NavitaRapid directory traversal
JumpQuick and fuzzy directory jumper
walkSimple and minimalistic terminal navigator
lacycd alternative that makes navigating much more efficient
DF-SHOWDirectory File Show
fzAdds fuzzy search to tab completion of z
paziFast autojump helper
jumperFiles/directories jumper
cdhistLinux shell cd history directory stack
icdShell utility that makes changing directories quicker and more convenient
SDDynamic directory navigation from the command line
DongleMove around deep directory trees
cdwecd with env vars
fastdiractQuick shell navigation and command execution
zmcd for lazy people
slingshotLightweight tool to browse files in the terminal
qcdQuickly change directory
navQuickly navigate through directories
menucdDirectory browser and changer
knNavigate folders quickly
jmpThe superior cd
gumpSmarter cd command

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted