ohmyzsh/tools
Robby Russell 84429a7229 feat(updater): add cooldown option to delay applying updates (#13813)
Introduces a new `zstyle ':omz:update' cooldown <days>` setting that limits
the updater to only apply commits that are at least N days old. Defaults to 0
(current behavior — always pull latest).

When cooldown is set, the updater fetches the remote branch and finds the most
recent commit whose committer timestamp is at least N days old, then applies it
via `git merge --ff-only`. If the local copy is already at or past the cooldown
ref, nothing changes.

- tools/upgrade.sh: reads cooldown zstyle, replaces git pull with fetch +
  merge --ff-only when cooldown > 0
- README.md: documents the new setting under "Getting Updates"
- templates/zshrc.zsh-template: adds commented-out cooldown example alongside
  frequency, with rephrased comments to clarify how the two work together
2026-06-12 11:34:27 -07:00
..
changelog.sh fix(changelog): show if there are no changes (#12934) 2025-01-23 20:38:12 +01:00
check_for_upgrade.sh fix(check_for_upgrade): ensure compatibility with screen (#13302) 2025-09-19 15:47:45 +02:00
install.sh fix(installer): handle sudo shims that don't support -k flag (#13651) 2026-03-26 20:09:56 +01:00
require_tool.sh chore(docs): fix some typos (#11211) 2022-10-03 17:03:53 +02:00
theme_chooser.sh fix(theme-chooser): use env in shebang (#12720) 2024-10-03 10:47:33 +02:00
uninstall.sh fix(uninstall): abort uninstall if unable to change shell (#10357) 2023-03-23 14:34:43 +01:00
upgrade.sh feat(updater): add cooldown option to delay applying updates (#13813) 2026-06-12 11:34:27 -07:00