This week's tip of the week is zoxide. Think of it as cd with a brain.

You know the drill. You cd into the same directories over and over. Maybe it's buried five levels deep. Maybe you typo it half the time.

zoxide tracks which directories you use most frequently and lets you jump to them with just a few keystrokes. Type z foo and it jumps to the highest-ranked directory matching "foo". You can combine terms too. z foo bar finds directories matching both.

z in action

The interactive mode is the real winner. Type zi foo and you get a fuzzy finder showing all matching directories. Pick with your arrow keys. Note, you need to have fzf installed to use zi.

zi in action

Installation is straightforward on pretty much every platform. Linux, macOS, Windows, BSD, even Android. Add one line to your shell config and you're done. It supports Bash, Zsh, Fish, PowerShell, Nushell, and more.

If you're already using autojump or z, there's an import command to bring your data over.

That's it! Short and sweet. Until the next one!

Keep Reading