Skip to content

Instantly share code, notes, and snippets.

@y-krn
Last active November 12, 2019 05:44
Show Gist options
  • Save y-krn/ab8e843a1f54f06128a0647d5326afb2 to your computer and use it in GitHub Desktop.
Save y-krn/ab8e843a1f54f06128a0647d5326afb2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.homebrew-upgrade</string>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/usr/local/bin/brew update && /usr/local/bin/brew upgrade && /usr/local/bin/terminal-notifier -title 'Homebrew Upgrader' -message 'Homebrew upgraded!'</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/localhost.homebrew-upgrade.stderr</string>
<key>StandardOutPath</key>
<string>/tmp/localhost.homebrew-upgrade.stdout</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>8</integer>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment