Last active
November 28, 2017 15:37
-
-
Save LeiHao0/26a056bdf830e766e3af to your computer and use it in GitHub Desktop.
UpdateBrewDaily
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s $Path/AutoUpdateBrew/launchd.plist ~/Library/LaunchAgents/sh.brew.update | |
launchctl load ~/Library/LaunchAgents/sh.brew.update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>sh.brew.update</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>$Path/AutoUpdateBrew/launchd.sh</string> | |
</array> | |
<key>StartCalendarInterval</key> | |
<dict> | |
<key>Day</key> | |
<string>7</string> | |
<key>Minute</key> | |
<integer>0</integer> | |
<key>Hour</key> | |
<integer>10</integer> | |
</dict> | |
<key>StandardOutPath</key> | |
<string>$Path/AutoUpdateBrew/launchd.log</string> | |
<key>StandardErrorPath</key> | |
<string>$Path/AutoUpdateBrew/launchdErr.log</string> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
/bin/zsh | |
. ~/.zshrc | |
brew cleanup | |
brew doctor | |
brew update | |
brew upgrade | |
brew cleanup | |
brew doctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment