ZOXIDE(1) zoxide ZOXIDE(1)

zoxide-init - generate shell configuration for zoxide

zoxide init SHELL [OPTIONS]

To initialize zoxide on your shell:

Add this to the end of your config file (usually ~/.bashrc):
    eval "$(zoxide init bash)"
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.

Add this to the end of your config file (usually ~/.config/fish/config.fish):
    zoxide init fish | source
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+.

Add this to the end of your config file (find it by running echo $profile in PowerShell):
    Invoke-Expression (& { (zoxide init powershell | Out-String) })
Add this to the end of your config file (usually ~/.xonshrc):
    execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
Add this to the end of your config file (usually ~/.zshrc):
    eval "$(zoxide init zsh)"

Add this to the end of your config file:

    eval "$(zoxide init posix --hook prompt)"

Changes the prefix of the z and zi commands.
--cmd j would change the commands to (j, ji).
--cmd cd would replace the cd command (doesn't work on Nushell / POSIX shells).
Print help information.
Changes how often zoxide increments a directory's score:
none Never
prompt At every shell prompt
pwd Whenever the directory is changed
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.

For any issues, feature requests, or questions, please visit:

https://github.com/ajeetdsouza/zoxide/issues

Ajeet D'Souza <98ajeet@gmail.com>

2021-04-12