zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.95k stars 126 forks source link

[bug]: Command 'zinit ls' fail to display snippets #394

Open hotleave opened 1 year ago

hotleave commented 1 year ago

What happened?

using zi ls to list to snippets

Steps to reproduce

  1. Start a new terminal
  2. Input 'zi ls'
  3. Press Enter

Relevant output

ls: unrecognized option `--tree'
usage: ls [-@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] [--color=when] [-D format] [file ...]
, located at ZINIT[SNIPPETS_DIR], i.e. /Users/hotleave/.local/share/zinit/snippets

Screenshots and recordings

No response

Operating System & Version

OS: darwin20 | Vendor: apple | Machine: aarch64 | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (aarch64-apple-darwin20)

Terminal emulator

xterm-kitty

If using WSL on Windows, which version of WSL

No response

Additional context

echo $ZINIT[LIST_COMMAND]
ls --tree

Code of Conduct

vladdoster commented 1 year ago

@hotleave Ah, I see the issue (and thank you for reporting it). Let me work up a fix.