Skip to content

Instantly share code, notes, and snippets.

@nagaki
Created August 4, 2014 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagaki/4710420a5cdf4c808122 to your computer and use it in GitHub Desktop.
Save nagaki/4710420a5cdf4c808122 to your computer and use it in GitHub Desktop.
Automatic brew update by Launchd Agent
<?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.brew.update</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/zsh</string>
<string>-c</string>
<string>/usr/local/bin/brew update</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>10</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
<key>StandardOutPath</key>
<string>/path/to/logs/brew_update.out</string>
<key>StandardErrorPath</key>
<string>/path/to/logs/brew_update.err</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment