项目作者: d-w-arnold

项目描述 :
A shell script to prompt an auto-upgrade of Homebrew packages 📦 ⬆️
高级语言: Shell
项目地址: git://github.com/d-w-arnold/homebrew-auto-upgrade.git
创建时间: 2021-02-19T18:53:51Z
项目社区:https://github.com/d-w-arnold/homebrew-auto-upgrade

开源协议:MIT License

下载


Homebrew Package Auto-Upgrade Tool

Homebrew Package Auto-Upgrade Tool Demo

Setup

1) Add the following lines to your ~/.bashrc, ~/.zshrc, etc. file(s):

(IMPORTANT: replace <path> with the absolute path to this Github project repo)

(UPDATE_HOMEBREW_DAYS defaults to 7 days, if unset)

  1. # ---------
  2. # Homebrew Package Auto-Upgrade Config
  3. # ---------
  4. # Change how often to auto-update Homebrew (in days)
  5. export UPDATE_HOMEBREW_DAYS=7
  6. # Path to Homebrew auto-update installation (Github project repo)
  7. export UPDATE_HOMEBREW_PATH=<path>
  8. # Homebrew auto-update script
  9. source $UPDATE_HOMEBREW_PATH/homebrew-updater.sh

This Homebrew package auto-upgrade tool also stores a .brew-last-update file in your user’s home directory, which
contains a record of when the user was last prompted to run the Homebrew auto-upgrade tool.

(Optional)

2) You can edit the homebrew_updater() function, at line 14 in homebrew-updater.sh, to define your own Homebrew
package auto-upgrade steps.

Debug Logger

Each time your ~/.bashrc, ~/.zshrc, etc. file(s) are loaded, simple info and warning logs are sent to debug.log,
in this Git project repo.