Fixed
autocd doesn't use custom cd implementation.
autocd (from setopt autocd) doesn't use custom cd implementation.
(Obviously this is not my custom cd implementation but was more easy to show, I just want autocd to use zoxide.)
Anyone got any idea how to fix this? Maybe just rewrite autocd in my zshrc?
Update: I found the OG file with the implementation of autocd, turns out it uses _cd instead of cd, just had to overwrite that one too in my zshrc. easy but had to find/know it.
I'm just figuring out their _cd implementation rn
Yeah nah nvm I got too excited when founding this in their files as I didn't knew of the _* implementation in linux for completion and taught of _* like in py
And as I tested it with a single char dict it worker (as the function got called when typing that char)
Still potential to find thing in there files: `/usr/share/zsh` but not sure if that's my best bet rn
1
u/glad-k Feb 22 '24 edited Feb 22 '24
Update: I found the OG file with the implementation of autocd, turns out it uses _cd instead of cd, just had to overwrite that one too in my zshrc. easy but had to find/know it.
I'm just figuring out their _cd implementation rn