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

[Feature] Ability to clean cached eval #260

Closed
yozachar opened this issue Jul 1, 2023 · 2 comments
Closed

[Feature] Ability to clean cached eval #260

yozachar opened this issue Jul 1, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@yozachar
Copy link

yozachar commented Jul 1, 2023

What do you want?

znap eval caches the results. For non-repo evals, one needs to change the <command> name to invalidate the cache.

Why do you want this?

I want to be able to use the same <command> name.

Who else would benefit from this?

Every Zsh-Snap user.

How should it work?

For example when installing auto-completions for pipx I had to make a few attempts to get it right.

append_path $HOME/.local/bin
znap eval pipx-completions 'register-python-argcomplete pipx'

But every time I had to change the <command> in znap eval to test it, otherwise the old cached <command> would be sourced.

When I run znap clean I would like to have option to remove all or individual cached <command>s from ${XDG_CACHE_HOME:-$HOME/.cache}/zsh-snap/eval


Thanks a ton for Zsh-Snap! It's the prime reason for having a very fast startup time with lots of features.

@yozachar yozachar added the enhancement New feature or request label Jul 1, 2023
@marlonrichert
Copy link
Owner

For non-repo evals, one needs to change the <command> name to invalidate the cache.

Or you can just delete the cache manually: rm ${XDG_CACHE_HOME:-$HOME/.cache}/zsh-snap/eval/<command>.zsh

@marlonrichert
Copy link
Owner

Won't fix. See #261.

@marlonrichert marlonrichert closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
@marlonrichert marlonrichert added wontfix This will not be worked on and removed enhancement New feature or request labels Jul 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants