This script provides a basic maintenance routine for macOS, focusing on keeping Homebrew packages up-to-date.
- Updates Homebrew.
- Logs outdated packages.
- Automatically upgrades packages specified in
always_upgrade.txt. - Schedules nightly execution using
launchd.
- Clone the repository.
- Customize the
always_upgrade.txtfile with the packages you want to upgrade automatically. - Move the
com.user.macmaintenance.plistfile to~/Library/LaunchAgents/. - Load the
launchdjob:launchctl load ~/Library/LaunchAgents/com.user.macmaintenance.plist