Skip to content

Instantly share code, notes, and snippets.

@methbkts
Created February 8, 2022 01:27
Show Gist options
  • Save methbkts/740aab8cb658a13f1ba13d63e8490fd2 to your computer and use it in GitHub Desktop.
Save methbkts/740aab8cb658a13f1ba13d63e8490fd2 to your computer and use it in GitHub Desktop.
Homebrew Autoupdate for macOS
<?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>com.homebrew.update</string>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>-c</string>
<string>/usr/local/bin/brew update &amp;&amp; /usr/local/bin/terminal-notifier -title 'Homebrew Updater' -message 'Homebrew updated!' -appIcon https://raw.githubusercontent.com/Homebrew/brew.sh/master/assets/img/brew.png</string>
</array>
<key>RunAtLoad</key>
<true />
<key>StandardErrorPath</key>
<string>/tmp/com.homebrew.update.stderr</string>
<key>StandardOutPath</key>
<string>/tmp/com.homebrew.update.stdout</string>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>8</integer>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment