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 Request] Autoupdate like zgenom #20

Open
QuarticCat opened this issue Mar 9, 2024 · 0 comments
Open

[Feature Request] Autoupdate like zgenom #20

QuarticCat opened this issue Mar 9, 2024 · 0 comments

Comments

@QuarticCat
Copy link

QuarticCat commented Mar 9, 2024

Reference: https://github.com/jandamm/zgenom#run-updates-automatically

I saw zgenom record update time in the file, but we actually don't have to do this. We can simply use mtime. An oversimplified example is given below:

_qc_last_update=(~zdot/.zcomet/update(Nm-7))
if [[ -z $_qc_last_update ]] {
    touch ~zdot/.zcomet/update
    zcomet self-update
    zcomet update
}
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

1 participant