Skip to main content

Baty.net

A blog about everything by Jack Baty 👋

Zoxide and Fish Shell

I’m happy using Fish for my shell. One thing I’d not gotten around to after switching is finding a good directory jumper. The original z doesn’t work well with Fish. I used to use fasd and autojump, but thought I’d look around for something new.

For some reason, I’d never heard of zoxide: A smarter cd command. Combined with zoxide.fish: Tab completion and initialization for zoxide in fish shell, zoxide does the job nicely.

Installing zoxide on macOS is simple: brew install zoxide.

Then I installed zoxide.fish using Fisher. fisher install icezyclon/zoxide.fish.

zoxide.fish automatically aliases cd as z so my muscle memory is still useful.

That’s it. Now I can more easily jump around the file system in a terminal.