Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__zoxide_cd:cd:2: no such file or directory: world! #810

Closed
BurntNail opened this issue May 7, 2024 · 4 comments
Closed

__zoxide_cd:cd:2: no such file or directory: world! #810

BurntNail opened this issue May 7, 2024 · 4 comments

Comments

@BurntNail
Copy link

Whenever I try to use cdi in my terminal, I get this error:

__zoxide_cd:cd:2: no such file or directory: world!

I use zsh, with the following command in my .zshrc:

eval "$(zoxide init zsh --cmd cd)"

Is there a way I can use cdi, or zi in the default configuration?

@ajeetdsouza
Copy link
Owner

What version of zoxide / zsh is this?

zoxide --version
zsh --version

@ajeetdsouza ajeetdsouza added the waiting-for-response Waiting for a response from the issue author. label May 11, 2024
@BurntNail
Copy link
Author

Zsh: zsh 5.9 (x86_64-redhat-linux-gnu)

This issue seems to affect me on both machines running Fedora 39 & 40 (v0.9.2).

Also - If I sudo dnf remove zoxide and cargo install --git https://github.com/ajeetdsouza/zoxide/ , I still get the issue.

@github-actions github-actions bot removed the waiting-for-response Waiting for a response from the issue author. label May 11, 2024
@ajeetdsouza
Copy link
Owner

This is almost certainly an issue specific to your setup. cdi is based on the zoxide query -i command, which only outputs absolute paths (so just world! should not be possible), and it only outputs directories that exist.

It's hard to debug without having access to your setup. But here's some steps I think you could use to debug this on your own:

  • The cdi command is an alias of __zoxide_zi.
  • You can see the source code by running type -f __zoxide_zi.
  • Once you see the source code, try running it bit by bit manually and see where the world! result is coming from.

@ajeetdsouza ajeetdsouza added the waiting-for-response Waiting for a response from the issue author. label May 16, 2024
@BurntNail
Copy link
Author

Managed to fix it - it was an error with my fzf installation. There seems to be a crate called fzf that prints Hello, world! which I had mistakenly installed and it was overriding my system fzf. Sorry!

@github-actions github-actions bot removed the waiting-for-response Waiting for a response from the issue author. label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants