I use fish as my go-to shell – it’s fast, the syntax is more sane than bash
, and there are a lot of great plugins for it.
One plugin I use a lot is jethrokuan’s port of z, which allows for very quick directory jumping.
Unfortunately, sometimes I reorganize my directories, and z
can get confused and try to jump into a no longer existent directory.
No worries! z
thought of that, and provides the z --clean
command which removes nonexistent directories from its lists.
But I never remember to run that. Wouldn’t it be nice if I could just have that run automatically every two weeks or so?