diff --git a/README.md b/README.md index eb15225..dbaf279 100644 --- a/README.md +++ b/README.md @@ -965,6 +965,41 @@ Run job every 5 minutes. ``` +#### Periodic Homebrew Update & Upgrade + +```xml + + + + + Label + com.example.homebrew-upgrade + ProcessType + Background + ProgramArguments + + /bin/sh + -c + /usr/local/bin/brew update && /usr/local/bin/brew upgrade && /usr/local/bin/terminal-notifier -title 'Homebrew Upgrader' -message 'Homebrew upgraded!' -appIcon http://curvve-curvvemedia.netdna-ssl.com/wp-content/uploads/2013/09/homebrew_osx_logo.png + + RunAtLoad + + StandardErrorPath + /tmp/com.example.homebrew-upgrade.stderr + StandardOutPath + /tmp/com.example.homebrew-upgrade.stdout + StartCalendarInterval + + + Hour + 8 + + + + +``` + +To leverage the notification system, this agent requires [terminal-notifier](https://github.com/julienXX/terminal-notifier), which can be installed via `brew install terminal-notifier`. ### LaunchServices