Videos
In the z readme, after line 50, it says:
Installation:
Put something like this in your $HOME/.bashrc or $HOME/.zshrc:
. /path/to/z.shcd around for a while to build up the db.
You need to download the z.sh file to a directory of your choosing, then tell your .bashrc where it is, so your terminal can find it. (The same applies for z-shell, which is just another shell system.) Then, after you use bash for a while, z will know your favorite locations.
You can download and add to *rc files using command line as so
# Download to latest to home dir
wget "https://raw.githubusercontent.com/rupa/z/master/z.sh" -O "~/z.sh"
# Add to .bashrc
echo "source /path/to/z.sh" >> ~/.bashrc
# Add to .zshrc
echo "source /path/to/z.sh" >> ~/.zshrc
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