Closed xfzv closed 4 months ago
I'm experiencing the same behavior in a virtual machine (Arch Linux) with zoxide 0.9.4, Zsh 5.9 and even Bash 5.2.26. No additional setting/plug-in whatsoever, just:
# last line of ~/.zshrc
% eval "$(zoxide init zsh)"
# last line of ~/.bashrc
% eval "$(zoxide init bash)"
So I guess this is most likely by design? If so:
cd
(or browsed directly thanks to AUTO_CD
Zsh option) from being added to the zoxide database? This is expected behaviour, zoxide automatically adds a hook to your cd command.
I'm using Zsh. Every time I change directory without invoking any zoxide command, said directory is automatically added to the zoxide database. I can see it listed with either
% zi
or% zoxide edit
This occurs with:
Note that
z /path/to/dir
orzi /path/to/dir
also add selected directory to the database, as expected.zoxide
is loaded at the very end of my.zshrc
:I tried with with 0.9.3, 0.9.2, 0.9.1 and 0.9.0: same behavior. I also tried disabling everything in my
.zshrc
except these two Zoxide lines but it doesn't make any difference.Is it an intended behavior? I don't think this used to occur before but maybe I just missed it?
Thanks.