zoxide

zoxide

Zoxide is a smarter cd command. What it does is, it remembers which directories you visit frequently, and lets you access it in the shortest way possible.

For example, if you access /home/user/web/hugo/wiki all the time, instead of executing cd /home/user/web/hugo/wiki, you could just run z wi.

NB: If you have other directories starting with wi, then you’d have to be more explicit.

Installation

https://github.com/ajeetdsouza/zoxide#installation

Nushell Integration

Generate the Nushell integration script:

zoxide init nushell | save -f ~/.config/nushell/zoxide.nu

Add this the end of your Nushell config file (vim $nu.config-path):

source ~/.config/nushell/zoxide.nu