🌐
GitHub
github.com › agkozak › zsh-z
GitHub - agkozak/zsh-z: Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features. · GitHub
Zsh-z is a command-line tool that allows you to jump quickly to directories that you have visited frequently or recently -- but most often a combination of the two (a concept known as "frecency"). It works by keeping track of when you go to ...
Starred by 2.4K users
Forked by 79 users
Languages   Shell
🌐
GitHub
github.com › agkozak › zsh-z › blob › master › zsh-z.plugin.zsh
zsh-z/zsh-z.plugin.zsh at master · agkozak/zsh-z
# Zsh-z - jump around with Zsh - A native Zsh version of z without awk, sort,
Author   agkozak
The Z shell (Zsh) is a shell and a command-line interpreter for shell scripts. Zsh mostly maintains the Bourne shell's syntax and behavior, but in its default configuration deviates in some significant … Wikipedia
Factsheet
Original author Paul Falstad
Developers Peter Stephenson, et al.
Release 1990; 36 years ago (1990)
Factsheet
Original author Paul Falstad
Developers Peter Stephenson, et al.
Release 1990; 36 years ago (1990)
🌐
Wikipedia
en.wikipedia.org › wiki › Z_shell
Z shell - Wikipedia
3 weeks ago - The name Zsh derives from the name of Zhong Shao, a teaching assistant at Princeton University. Falstad regarded Shao's login, "zsh", as a good name for a shell. Zsh was at first intended to be a subset of csh for the Amiga, but expanded far beyond that. By the time of the release of version 1.0 in 1990 the aim was to be a cross between ksh and tcsh –a powerful "command ...
🌐
ZSH
zsh.sourceforge.io › Doc › Release › index.html
The Z Shell Manual (zsh)
This Info file documents Zsh, a freely available UNIX command interpreter (shell), which of the standard shells most closely resembles the Korn shell (ksh), although it is not completely compatible.
🌐
IBM
ibm.com › docs › en › zos › 3.1.0
zsh - The Z shell
Get assistance for the IBM products, services and software you own · Provides fixes and updates for your system's software, hardware, and operating system
🌐
GitHub
github.com › ohmyzsh › ohmyzsh › tree › master › plugins › z
oh-my-zsh/z
This plugin defines the z command that tracks your most visited directories and allows you to access them with very few keystrokes. Assume that you have previously visited directory ~/.oh-my-zsh/plugins.
Author   ohmyzsh
🌐
Smashing Magazine
smashingmagazine.com › 2015 › 07 › become-command-line-power-user-oh-my-zsh-z
Become A Command-Line Power User With Oh My ZSH And Z — Smashing Magazine
July 11, 2015 - By typing mong and hitting “Tab,” you’ll see all available commands that start with mong. ZSH allows you to extend built-in functionality by adding plugins, and it actually ships with a bunch of fantastic ones. To enable a plugin, open your .zshrc file and scroll down until you see the spot where active plugins are defined. To add a new one, just type the name between the parentheses, making sure to include a space between each name. plugins=(git cloudapp node npm bower brew osx extract z)
Find elsewhere
🌐
GitHub
github.com › ohmyzsh › ohmyzsh › blob › master › plugins › z › README.md
ohmyzsh/plugins/z/README.md at master · ohmyzsh/ohmyzsh
This plugin defines the z command that tracks your most visited directories and allows you to access them with very few keystrokes. Assume that you have previously visited directory ~/.oh-my-zsh/plugins.
Author   ohmyzsh
🌐
GitHub
github.com › rupa › z
GitHub - rupa/z: z - jump around · GitHub
OPTIONS -c restrict matches to subdirectories of the current directory -e echo the best match, don't cd -h show a brief help message -l list only -r match by rank only -t match by recent access only -x remove the current directory from the datafile EXAMPLES z foo cd to most frecent dir matching foo z foo bar cd to most frecent dir matching foo, then bar z -r foo cd to highest ranked dir matching foo z -t foo cd to most recently accessed dir matching foo z -l foo list all dirs matching foo (by frecency) NOTES Installation: Put something like this in your $HOME/.bashrc or $HOME/.zshrc: . /path/to/z.sh cd around for a while to build up the db. PROFIT!! Optionally: Set $_Z_CMD to change the command name (default z).
Starred by 17K users
Forked by 1.2K users
Languages   Shell 64.6% | Roff 35.0% | Makefile 0.4%
🌐
Reddit
reddit.com › r/zsh › introducing zsh-z
r/zsh on Reddit: Introducing ZSH-z
December 13, 2018 -

I've used z.sh both in bash and in ZSH for years now to jump quickly from directory to directory. That script relies heavily on awk, and it struck me that the same job could be done in ZSH without awk -- or date, sort, or sed, for that matter.

I'd like to introduce ZSH-z, a native ZSH port of z.sh. It's quite a bit faster than its original, as it avoids unnecessary subshells, and the only external commands it still uses are mv and rm. The speed increase can be felt particularly on Windows (MSYS2/Cygwin/WSL), which has problems with forking.

I've also introduced little fixes, and one new feature which is now on by default: completion menus are populated according to how often you go to directories and how recently you've been to them ("frecency"), whereas in the original the menu is simply sorted alphabetically. The original behavior is still there if you set ZSHZ_COMPLETION=legacy.

https://github.com/agkozak/zsh-z

🌐
Alldrops
alldrops.info › posts › cli-drops › 2021-07-26_customize-zsh-part-4
Customize Zsh Pt.4 - ZSH-z Plugin – all drops
July 26, 2021 - ZSH-z is a command line tool that allows you to jump quickly to directories that you have visited frequently in the past, or recently…[read more]
🌐
Oh My Zsh!
ohmyz.sh
Oh My Zsh - a delightful & open source framework for Zsh
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration.
🌐
Yurik
yurik.info › blog › zsh-z-tool
zsh-z: The Directory Jumping Tool I Can't Live Without | Yuri's Dev Blog
October 17, 2025 - zsh-z is a native Zsh implementation of the popular z command.
🌐
ZSH
zsh.sourceforge.io › Guide › zshguide03.html
A User's Guide to the Z-Shell
Note that there is usually also an external command called echo, which may not be identical to zsh's; there is no standard external command called print, but if someone has installed one on your system, the chances are it sends something to the printer, not the screen. One special effect is `print -z' puts the arguments onto the editing buffer stack, a list maintained by the shell of things you are about to edit.
🌐
Opensource.com
opensource.com › article › 19 › 9 › getting-started-zsh
Getting started with Zsh | Opensource.com
September 17, 2019 - This is the Z Shell configuration function for new users, zsh-newuser-install. (q) Quit and do nothing. (0) Exit, creating the file ~/.zshrc (1) Continue to the main menu. There are four categories of preferences, so just start at the top. The first category lets you choose how many commands are retained in your shell history file.
🌐
Thenybble
thenybble.de › posts › stupid zsh tricks
Stupid ZSH tricks | thenybble.de
October 11, 2021 - You need to be using zsh-z. It's like the Firefox address bar for directories. zsh-z maintains a history of your directories, sorted by "frecency", frequency and recency. Whenever you call z $somedir, it will look up $somedir in that history, and take you to it.
🌐
Linux Man Pages
linux.die.net › man › 1 › zsh
zsh(1): Z shell - Linux man page
Commands are then read from $ZDOTDIR/.zshenv. If the shell is a login shell, commands are read from /etc/zprofile and then $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands are read from /etc/zshrc and then $ZDOTDIR/.zshrc.
🌐
Reddit
reddit.com › r/zsh › new, alternative directory-changing behavior in zsh-z
r/zsh on Reddit: New, alternative directory-changing behavior in ZSH-z
June 27, 2020 -

ZSH-z is a command line tool that allows you to jump quickly to directories that you have visited frequently in the past, or recently -- but most often a combination of the two (a concept known as "frecency"). ZSH-z is a native ZSH port of rupa/z, but it uses native ZSH features to avoid having to invoke external programs such as awk, sed, sort, date, and the like.

A new setting, ZSHZ_UNCOMMON=1, addresses a common complaint about rupa/z and ZSH-z that involves "common prefixes."

If you type z code and the best matches, in increasing order, are

/home/me/code/foo
/home/me/code/bar
/home/me/code/bat

ZSH-z will see that all possible matches share a common prefix and will send you to that directory -- /home/me/code -- which is often a desirable result. But if the possible matches are

/home/me/.vscode/foo
/home/me/code/foo
/home/me/code/bar
/home/me/code/bat

then there is no common prefix. In this case, z code will simply send you to the highest-ranking match, /home/me/code/bat.

You may enable an alternate, experimental behavior by setting ZSHZ_UNCOMMON=1. If you do that, ZSH-z will not jump to a common prefix, even if one exists. Instead, it chooses the highest-ranking match -- but it drops any subdirectories that do not include the search term. So if you type z bat and /home/me/code/bat is the best match, that is exactly where you will end up. If, however, you had typed z code and the best match was also /home/me/code/bat, you would have ended up in /home/me/code (because code was what you had searched for). This feature is still in development, and feedback is welcome.

https://github.com/agkozak/zsh-z