Closed UtkarshVerma closed 5 months ago
What zsh version are you running? command cd
works fine on zsh for me.
I am using v5.9.
$ zsh --version
zsh 5.9 (x86_64-pc-linux-gnu)
zsh appears to differ from POSIX shells here. Whereas in other shells you would use command cd
, on zsh you need to use builtin cd
unless the POSIX_BUILTINS
option is set.
Possible solutions:
POSIX_BUILTINS
in zsh. This will make zsh POSIX-compliant, and zoxide will start working again.Thanks, using setopt posixbuiltins
did the job for me.
I have a common shell configuration file named
shellrc
where I initialisezoxide
as follows:This works and in my
zsh
shell, I can see thez
command. However, when I try to open a directory, I get the following:I have investigated this to be caused by the following implementation.
Here is what fails on
zsh
:This works on other shells like
dash
andbash
.