Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-w-arnold/homebrew-auto-upgrade
A shell script to prompt an auto-upgrade of Homebrew packages 📦 ⬆️
https://github.com/d-w-arnold/homebrew-auto-upgrade
homebrew shell updater
Last synced: 9 days ago
JSON representation
A shell script to prompt an auto-upgrade of Homebrew packages 📦 ⬆️
- Host: GitHub
- URL: https://github.com/d-w-arnold/homebrew-auto-upgrade
- Owner: d-w-arnold
- License: mit
- Created: 2021-02-19T18:53:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T01:19:06.000Z (about 3 years ago)
- Last Synced: 2023-03-05T06:24:10.857Z (almost 2 years ago)
- Topics: homebrew, shell, updater
- Language: Shell
- Homepage:
- Size: 174 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homebrew Package Auto-Upgrade Tool
![Homebrew Package Auto-Upgrade Tool Demo](demo/demo_input.png)
### Setup
1) Add the following lines to your `~/.bashrc`, `~/.zshrc`, etc. file(s):
(**IMPORTANT**: replace `` with the absolute path to this Github project repo)
(`UPDATE_HOMEBREW_DAYS` defaults to 7 days, if unset)
```shell
# ---------
# 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=# 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)
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.