News for hackers. Stuff that matters.
Re:Cdpath: Easily Navigate Directories in the Terminal by ARandomerDude on Wednesday December 06, 2023 @09:20PM (#38552039)
For even more power use z

https://github.com/rupa/z

Re:Cdpath: Easily Navigate Directories in the Terminal by kstrauser on Wednesday December 06, 2023 @09:30PM (#38552110)
I prefer zoxide, which is very similar: https://github.com/ajeetdsouza/zoxide
Re:Cdpath: Easily Navigate Directories in the Terminal by TheCycoONE on Wednesday December 06, 2023 @11:36PM (#38552877)
I preferred fasd or specifically the oh-my-zsh fasd plugin for what I felt was more natural disambiguation completion (tab after vs remembering zi up front or space tab) and additional shortcuts.

I use zoxide now slightly reluctantly since fasd isn't maintained.

Re:Cdpath: Easily Navigate Directories in the Terminal by battles on Wednesday December 06, 2023 @09:45PM (#38552203)
That repo has an ad in its readme. Never seen that before.
Re:Cdpath: Easily Navigate Directories in the Terminal by kstrauser on Wednesday December 06, 2023 @10:32PM (#38552521)
Huh, I didn’t even notice. Yeah, that’s a new one on me.
Re:Cdpath: Easily Navigate Directories in the Terminal by squigz on Thursday December 07, 2023 @10:14AM (#38557258)
And it's right at the top. This is a sure way to get me to ignore your software :(
Re:Cdpath: Easily Navigate Directories in the Terminal by notnmeyer on Wednesday December 06, 2023 @09:41PM (#38552177)
what do you prefer about it?
Re:Cdpath: Easily Navigate Directories in the Terminal by kstrauser on Wednesday December 06, 2023 @10:31PM (#38552520)
It’s a few things that aren’t big but add up: it’s compiled, and given how often it’s execute, that can make a difference (and especially on a heavily loaded system); it still gets updates; it plays better with Fish shell from my recollection; it supports fzf.

Z is perfectly fine. If zoxide didn’t exist, I’d use z instead. As it stands today, I think zoxide is niftier.

Re:Cdpath: Easily Navigate Directories in the Terminal by sgt on Thursday December 07, 2023 @12:03AM (#38553029)
Just installed z. After activating it, it outputs the directory when you use cd. Can one make that stop?
Re:Cdpath: Easily Navigate Directories in the Terminal by yochem on Thursday December 07, 2023 @02:35AM (#38553856)
Did you change the _Z_CMD? If so, you have to include 2>&1. The default is

    alias ${_Z_CMD:-z}='_z 2>&1'
Re:Cdpath: Easily Navigate Directories in the Terminal by sgt on Thursday December 07, 2023 @06:14AM (#38555166)
Thanks, just a misunderstanding from my side. Works now. Nice tool, already getting used to it.
Re:Cdpath: Easily Navigate Directories in the Terminal by ilyagr on Wednesday December 06, 2023 @09:59PM (#38552291)
If you are willing to install a lua interpreter, https://github.com/skywind3000/z.lua is quite nice and has more features, e.g. fzf integration and an interactive mode.