| name | mac-maintenance |
| description | Mac upkeep: brew update/upgrade, pull clean repos, empty Trash. |
Mac Maintenance
Use when Peter asks for Mac cleanup, maintenance, or package/repo refresh.
Run
- Homebrew:
brew update && brew upgrade
- Repos under
~/Projects:
for repo in ~/Projects/*/.git; do
dir=${repo:h}
git -C "$dir" status --short --branch
git -C "$dir" pull --ff-only
done
Skip dirty repos unless Peter explicitly asked to handle them. Report skipped paths.
- Empty Trash:
osascript -e 'tell application "Finder" to empty trash'
- Finish with terse counts:
- brew: upgraded / already current
- repos: pulled / skipped / failed
- trash: emptied / failed