Skip to content

Instantly share code, notes, and snippets.

@chris-erickson
Created June 5, 2014 14:30
Show Gist options
  • Save chris-erickson/18d2dffe5d88ae7de222 to your computer and use it in GitHub Desktop.
Save chris-erickson/18d2dffe5d88ae7de222 to your computer and use it in GitHub Desktop.
A helper to run the homebrew updater
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.zerowidth.launched.homebrew_updater</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>brew update &gt; /dev/null 2&gt;&amp;1 &amp;&amp; brew outdated | terminal-notifier -sound default -group homebrew_notifier -activate com.apple.Terminal -subtitle $'Homebrew updates available! \xF0\x9f\x8d\xba'</string>
</array>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Weekday</key>
<integer>1</integer>
</dict>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Weekday</key>
<integer>2</integer>
</dict>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Weekday</key>
<integer>3</integer>
</dict>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Weekday</key>
<integer>4</integer>
</dict>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Weekday</key>
<integer>5</integer>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment