Hacker News new | ask | show | jobs
by Mekantis 2163 days ago
rupa/z

Being able to type something like "z ab g f" to reach a fairly deeply nested directory is almost akin to magic. I absolutely hate cd'ing everywhere, and often I'm cd'ing between the same couple of directories for a number of projects, so I feel like it helps retain my sanity. I've also written scripts to take advantage of it, such as a cp clone that doesn't require an immediate target. So I can cp a file (or number of files, or a directory), z-jump to a different directory and paste it there instead of laboriously typing out all the directory paths. I love it.

1 comments

Just wanted to say thanks for this rec. Tried it this morning and I'm smitten. Adding this to my (tiny) set of non-standard tools, alongside ripgrep, fzf and fd-find.