Download zoxide

Install zoxide on macOS, Linux, and Windows. After installation, remember to initialize Shell configuration to make zoxide work. For more installation options and detailed documentation, see Official GitHub Repository.

Choose Installation Method

macOS

bash
user@dev:~$$ brew install zoxide

Simplest installation method on macOS

Windows

bash
user@dev:~$$ scoop install zoxide

Recommended installation method on Windows

All Platforms

bash
user@dev:~$$ cargo install zoxide

Requires Rust and Cargo to be installed first

Shell Configuration

After installation, you need to add the following commands to your Shell configuration file. Choose the corresponding configuration based on the Shell you use:

zsh

bash
user@dev:~$$ eval "$(zoxide init zsh)"

bash

bash
user@dev:~$$ eval "$(zoxide init bash)"

fish

fish
user@dev:~$$ zoxide init fish | source

PowerShell

powershell
@:PS C:\>$ Invoke-Expression (& { (zoxide init powershell | Out-String) })

💡 Tip: Add the configuration to the corresponding Shell config file (such as ~/.zshrc, ~/.bashrc, etc.), then reload the Shell or open a new terminal window to use it.