Hacker News new | ask | show | jobs
by printf_alex_ 1269 days ago
+1 for zoxide. I can be in my home directory and cd into a directory 3 subdirectories away.
1 comments

Perhaps I'm misunderstanding your exact use-case, but can't cd do that?

cd ../../../<dir> or whatever

Or are you saying you can skip a greater portion of the path?

Say I have a directory as Documents/projects/rust/supercoolproject, from my home directory I can just type `z sup` and because it's in my command history and no other path contains super, it just takes me straight there.

If there are more than one you either repeat the command to go to the next match, or can do `zi sup` and it will give you the results in an fzf picker to just pick the right one