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

Error when cd-ing into any directory in fish shell #37

Closed
martindzejky opened this issue Mar 16, 2020 · 4 comments
Closed

Error when cd-ing into any directory in fish shell #37

martindzejky opened this issue Mar 16, 2020 · 4 comments

Comments

@martindzejky
Copy link

Hello, I installed zoxide according to the instructions in the README file. I also initialized it for fish shell.

Now, when I cd into any directory, I get this error:

error: Found argument '--add' which wasn't expected, or isn't valid in this context

USAGE:
    zoxide query [FLAGS] [keywords]...

For more information try --help
zoxide --version
zoxide 0.2.1

fish --version
fish, version 3.0.2

Any help with this?

@cole-h
Copy link
Contributor

cole-h commented Mar 16, 2020

What is the output of type _zoxide_hook and type z? What is the actual command you're running before you encounter this error? Does this still happen if you run zoxide init fish | source in a pre-existing fish instance and start cding/zing around?

@ajeetdsouza
Copy link
Owner

Have you aliased zoxide, by any chance?

@martindzejky
Copy link
Author

I don't know what happened but today I started my computer and this issue was no longer present 🤷‍♂ . I am not only hitting #35 which is not a big deal and will probably be fixed in the next release.

Again, not sure why it did not work before, but it works now (and whoa, it is fast!). So I'm closing this. Thanks 🙂

@ajeetdsouza
Copy link
Owner

No problem! And the error codes have been fixed already, they'll be added in the next release!

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

3 participants