ZOXIDE(1)
β¨ NAME β¨
zoxide-init β bestie, this is the little spell that generates your shell configuration for zoxide πͺ
π¦ SYNOPSIS π¦
zoxide init SHELL [OPTIONS]
π DESCRIPTION π
okay so here's the whole vibe: to initialize zoxide on your shell, you gotta paste one tiny line into your config file. that's it. that's the whole ritual. every shell does it a little differently, so scroll to yours and copy it exactly, no cap π₯
π bash
Add this to the end of your config file (usually ~/.bashrc):
eval "$(zoxide init bash)"
π§ elvish
Add this to the end of your config file (usually ~/.elvish/rc.elv):
eval $(zoxide init elvish | slurp)
Note: zoxide only supports elvish v0.18.0 and above.
π fish
Add this to the end of your config file (usually ~/.config/fish/config.fish):
zoxide init fish | source
π nushell
Add this to the end of your env file (find it by running $nu.env-path in Nushell):
zoxide init nushell | save -f ~/.zoxide.nu
Now, add this to the end of your config file (find it by running $nu.config-path in Nushell):
source ~/.zoxide.nu
Note: zoxide only supports Nushell v0.89.0+.
π powershell
Add this to the end of your config file (find it by running echo $profile in PowerShell):
Invoke-Expression (& { (zoxide init powershell | Out-String) })
πΈ tcsh
Add this to the end of your config file (usually ~/.tcshrc):
zoxide init tcsh > ~/.zoxide.tcsh
source ~/.zoxide.tcsh
β xonsh
Add this to the end of your config file (usually ~/.xonshrc):
execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
π zsh
Add this to the end of your config file (usually ~/.zshrc):
eval "$(zoxide init zsh)"
π any POSIX shell
Add this to the end of your config file:
eval "$(zoxide init posix --hook prompt)"
π OPTIONS π
--cmdβ Changes the prefix of thezandzicommands. like,--cmd jwould change the commands to (j,ji). and--cmd cdwould replace thecdcommand (doesn't work on Nushell / POSIX shells). choose wisely bestie π-h,--helpβ Print help information. the classic. always there for you π«Ά--hook HOOKβ Changes how often zoxide increments a directory's score:noneβ Neverpromptβ At every shell promptpwdβ Whenever the directory is changed
--no-cmdβ Prevents zoxide from defining thezandzicommands. These functions will still be available in your shell as__zoxide_zand__zoxide_zi, should you choose to redefine them. main character energy fr fr π§
π REPORTING BUGS π
For any issues, feature requests, or questions, please visit:
https://github.com/ajeetdsouza/zoxide/issues
π AUTHOR π
Ajeet D'Souza <98ajeet@gmail.com>
and that's the whole page, bestie!! this lil icon dropped on 2021-04-12, it's living in the ZOXIDE(1) manual, and it's literally the blueprint for making your shell remember where you've been π¦ go set it up, you're gonna ate π β¨
π¦ where this page comes from
- alpine 3.24: zoxide-doc 0.9.9-r0 Β· MIT
- arch rolling: zoxide 0.10.0-1 Β· MIT
- epel 9: zoxide 0.9.8-2.el9 Β· MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) AND (MIT-0 OR Apache-2.0)
- fedora 43: zoxide 0.9.8-1.fc43 Β· MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) AND (MIT-0 OR Apache-2.0)
- fedora 44: zoxide 0.9.8-2.fc44 Β· MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) AND (MIT-0 OR Apache-2.0)
- nixos 26.05: zoxide 0.9.9
- nixpkgs unstable: zoxide 0.10.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms