Skip to content

rwoeber/homebrew-update-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

OS X Homebrew Update Notifier

A little script to announce outdated Homebrew formulas in the OS X Notification Center.

Installation

brew install frdmn/formulas/homebrew-update-notifier
brew services start homebrew-update-notifier

To automate the execution we can use Homebrew's service subcommand to add it in our launchctl configuration. This will fire the script at login, at 10:00 and at 15:00. (If you want to change this, consider a manual install:

ln -sfv /usr/local/opt/homebrew-update-notifier/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.homebrew-update-notifier.plist

Manual Installation

Updates are checked at login, 10:00 and 15:00. If you want to have the script run at other times, consider to manually install everything.

Prerequisites

  • Homebrew, of course.
  • terminal-notifier is for sending the results of the script to the Notification Center. Install with brew install terminal-notifier.

Download the script and place it in your environment path (how about /usr/local/bin?) and give it executable rights: chmod +x /usr/local/bin/homebrew-update-notifier.

Automation

Here is a little overview on writing launchd-entries.

  1. Copy the example launch agent file into your user library: cp opt/homebrew.update-notifier.plist ~/Library/LaunchAgents/homebrew.update-notifier.plist
  2. Modify the starting times and and other settings to your flavour
  3. Start with launchctl load ~/Library/LaunchAgents/homebrew.update-notifier.plist. (You can halt the process by using unload as launchctl command).

Credits

Based on the similar scripts from Chris Streeter and Simon Schick.

Version

1.0.3

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

For more information, please refer to http://unlicense.org/

About

announce outdated Homebrew formulas in the OS X Notification Center

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages