fix(updater): address cooldown review feedback

Pass cooldown into upgrade.sh as -c, extract the update helpers, and only
prompt when a cooldown-eligible commit would actually move HEAD.
This commit is contained in:
Robby Russell committed 2026-09-08 16:11:32 -07:00
1 parent 84429a7229
commit e872c661ad
4 files changed
+78 -23

No files matched your search

+7
View File
@@ -475,6 +475,13 @@ just a little later:
zstyle ':omz:update' cooldown 10
```
`omz update` honors this setting. If you call `upgrade.sh` directly, pass the same
value with `-c`, because that script does not read your `.zshrc`:
```sh
$ZSH/tools/upgrade.sh -c 10
```
### Updates Verbosity
You can also limit the update verbosity with the following settings: