ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
https://crates.io/crates/zoxide
MIT License
23.08k stars 557 forks source link

unrecognized subcommand 'Documents' when using zoxide to change directories #927

Closed dfalling closed 4 weeks ago

dfalling commented 4 weeks ago

I installed zoxide and fzf via homebrew on macOS 15.0.1 (24A348), and am setting up both in my .zshrc config:

export PATH="/opt/homebrew/bin:$PATH"

autoload -Uz compinit
compinit

source <(fzf --zsh)

alias z=zoxide
eval "$(zoxide init zsh)"

When I try to use zoxide to change directories, I get an unrecognized subcommand error. Are there any logs or troubleshooting steps I can check to see why the standard setup isn't working for me?

❯ z Documents
error: unrecognized subcommand 'Documents'

Usage: zoxide <COMMAND>

For more information, try '--help'.

Thanks!

ajeetdsouza commented 4 weeks ago

Remove alias z=zoxide, that's not necessary.