Skip to content

[bug]: snippet -f is not really working, and clearing the cache is odd. #746

@seefood

Description

@seefood

What happened?

I collected a few functions and aliases in a github gist. after the first time I load them with zinit snippet they stay cached. zinit snippet -f does not ignore the cache, it fails:

Image

I tried rm -rf ~/.cache/zinit but it persists.

I finally found about zinit delete via a search.

therefore:

  1. zinit snippet -f needs a fix.
  2. zinit help should be more helpful about cache management.
  3. consider zinit cache list/clear, or at least some documentation where the snippet cache is stored (why not in ~/.cache/zinit?)

Steps to reproduce

zinit snippet -f $URL

Relevant output

Setting up snippet: opt_-f,--force -f
ERROR: The source file opt_-f,--force -f doesn't exist.
Copying opt_-f,--force -f…
cp: cannot stat 'opt_-f,--force -f': No such file or directory
ERROR: The file copying has been unsuccessful.

Screenshots and recordings

Image

Operating System & Version

OS: darwin24.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (arm64-apple-darwin24.0)

Terminal emulator

WezTerm

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions