7 ms·
Maybe not a shell trick per-se but I have been a very big fan of zoxide. It can jump around your common directories. If you have a ~/workspace/projects and you
by ruptwelve 6mo ago
Maybe not a shell trick per-se but I have been a very big fan of zoxide. It can jump around your common directories. If you have a ~/workspace/projects and you are anywhere and type `cd projects` it will take you to that directory. I never realized how much I got hooked onto it, until I used a system without it.
- llarsson 6mo agoBuilt in functionality that may offer something similar: https://linuxhandbook.com/cdpath/ https://linuxhandbook.com/cdpath/
- jazoom 6mo agoI just type "z p" in that case and that's enough to get me there.
- aaravchen 6mo agoFor me I find I never have any reason to jump between directories based on frecency. Like ever. If I'm jumping between a few directories they're almost always named very similarly and that causes problems with the frecency ordering, especially when they're deep paths that get truncated. If I really happen to be jumping back and forth a lot, I use `pushd ...`, and then I can reference my other directory with `~1/` and toggle between the two with a bare `pushd`.