Home > Software > Tools > Command-line Tools > zoxide
Details
- Package ID
- zoxide
- Version
- 0.9.2
- Downloads
- 25828
- Website
- https://github.com/ajeetdsouza/zoxide
Summary
A smarter cd command. Supports all major shells.
Description
A smarter cd command for your terminal
zoxide is a blazing fast replacement for your cd command, inspired by
z and z.lua. It keeps track of the directories you use most
frequently, and uses a ranking algorithm to navigate to the best match.

Examples
z foo # cd into highest ranked directory matching foo
z foo bar # cd into highest ranked directory matching foo and bar
z ~/foo # z also works like a regular cd command
z foo/ # cd into relative path
z .. # cd one level up
z - # cd into previous directory
zi foo # cd with interactive selection (using fzf)
Read more about the matching algorithm here.
Getting started
Step 1: Install zoxide
zoxide works across all major platforms. If your distribution isn’t included
in the list below, you can download the binary from the Releases page and
copy it to your $PATH.
Step 2: Install fzf (optional)
fzf is a command-line fuzzy finder, used by zoxide for interactive
selection. Installation instructions can be found here.
Step 3: Add zoxide to your shell
See https://github.com/ajeetdsouza/zoxide#step-3-add-zoxide-to-your-shell for available options.
Configuration
init flags
--cmd: changes the prefix of predefined aliases (z,zi).- e.g.
--cmd jwould change the aliases tojandjirespectively.
- e.g.
--hook <HOOK>: change how often zoxide increments a directory’s score:none: never automatically add directories to zoxide.prompt: add the current directory to zoxide at every shell prompt.pwd: whenever the user changes directories, add the new directory to zoxide.
--no-aliases: don’t define extra aliases (z,zi).- These functions will still be available in your shell as
__zoxide_zand__zoxide_zi, should you choose to use them elsewhere.
- These functions will still be available in your shell as
Environment variables
https://github.com/ajeetdsouza/zoxide#environment-variables
Third-party integrations
- nnn, via autojump plugin
- xxh, via xxh-plugin-prerun-zoxide