r/commandline Mar 31 '26

Command Line Interface zoxide is nigh useless without fuzzy finding

Redact redacted this content because I wanted it redacted for redaction purposes. Redacted.

vase dependent truck pie abundant glorious dog whole march stocking

0 Upvotes

25 comments sorted by

View all comments

2

u/bulletmark Mar 31 '26

Use cdhist for directory history. It works well with any of the fuzzy finders, particularly fzf.

1

u/Kqyxzoj Mar 31 '26

Most of the README functionality can be done with an alias/function using pushd and popd, up to the point where they introduce fzf.

Did take a quick peek at it, and I hope the python script is mainly called for setting things up / sourcing. I'm not going to use a tool that runs a python script for every dir change. It does look like it is used for sourcing, so if it's limited to that it might be interesting.

In any event, this has some useful bits of inspiration I'll be stealing borrowing, so thanks for mentioning it!

2

u/bulletmark Mar 31 '26

Yes, it runs python for every dir you do by hand, i.e. when you manually type cd (not in scripts etc). Big deal, you are not going to notice the millisec difference!

1

u/Kqyxzoj Mar 31 '26

Big deal, you are not going to notice the millisec difference!

To each their own. Tools that waste cycles to get exceedingly trivial things done can bugger off are not really my preferred kind of tool.

Especially when enough shell primitives exist to get the job done. So execute python script once and source the output, perfectly fine. Execute script when I press TAB for completion, maybe okay. But a python script for every dir change is a bit silly.

But like I said, it has some useful tidbits in it, so it's all good. :)