ZOXIDE(1)

πŸ“¦
version 0.10.0 Β· 2 versions
, in alpine 3.24, arch rolling, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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 the z and zi commands. like, --cmd j would change the commands to (j, ji). and --cmd cd would replace the cd command (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 β€” Never
    • prompt β€” At every shell prompt
    • pwd β€” Whenever the directory is changed
  • --no-cmd β€” Prevents zoxide from defining the z and zi commands. These functions will still be available in your shell as __zoxide_z and __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