marlonrichert / zsh-snap

⚡️ Znap! Fast, easy-to-use tools for Zsh dotfiles & plugins, plus git repos
MIT License
1.32k stars 38 forks source link

Add auto-update functionality #270

Open rcloran opened 12 months ago

rcloran commented 12 months ago

Fixes #102

Before submitting your PR (pull request), please check the following:

rcloran commented 12 months ago

It's also not clear from the issue whether a prompt like this is what's wanted, or rather integration with the myriad cron-like systems out there, which would be quite a lot of work.

If what I've written isn't desired in znap, I won't be upset at all, happy to abandon it. I'd written it anyways for myself, since this is the functionality that I wanted on my machines.

rimmer commented 12 months ago

Looking forward to have it merged

marlonrichert commented 9 months ago

It's also not clear from the issue whether a prompt like this is what's wanted, or rather integration with the myriad cron-like systems out there, which would be quite a lot of work.

I think it's a bad idea to check on each shell startup whether to update. I would rather solve it in way that's similar to how git maintenance does it. See https://git-scm.com/docs/git-maintenance#Documentation/git-maintenance.txt---schedulerautocrontabsystemd-timerlaunchctlschtasks and the sections below it.

Are you interesting in updating your pull request to provide the initial framework for this? You don't need to implement support for all possible cron-like systems immediately. Just start with one, like crontab or launchctl, and we can add the rest later. Just keep it simple.

Thanks for contributing! 🙂