Re:Shell Tricks That Make Life Easier (and Save Your Sanity)
by ruptwelve on Thursday March 26, 2026 @09:02AM
(#47529931)
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.
[ Parent
| on HN ]
Re:Shell Tricks That Make Life Easier (and Save Your Sanity)
by llarsson on Thursday March 26, 2026 @02:21PM
(#47533913)
Built in functionality that may offer something similar:
Re:Shell Tricks That Make Life Easier (and Save Your Sanity)
by jazoom on Friday March 27, 2026 @05:57PM
(#47548875)
I just type "z p" in that case and that's enough to get me there.
Re:Shell Tricks That Make Life Easier (and Save Your Sanity)
by aaravchen on Sunday March 29, 2026 @01:23PM
(#47565158)
For 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`.