Skip to content

A shell script to prompt an auto-upgrade of Homebrew packages 📦 ⬆️

License

Notifications You must be signed in to change notification settings

d-w-arnold/homebrew-auto-upgrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

# ---------
# Homebrew Package Auto-Upgrade Config
# ---------

# Change how often to auto-update Homebrew (in days)
export UPDATE_HOMEBREW_DAYS=7

# Path to Homebrew auto-update installation (Github project repo)
export UPDATE_HOMEBREW_PATH=<path>

# Homebrew auto-update script
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)

  1. 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.

About

A shell script to prompt an auto-upgrade of Homebrew packages 📦 ⬆️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages