Created
March 29, 2019 20:51
-
-
Save NotAlexNoyle/71d2563f243db10e9a4a2908eb83ded5 to your computer and use it in GitHub Desktop.
A simple workflow for updating applications from https://github.com/Homebrew/homebrew-cask
This file contains 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
Command 1: caskchk - Check for updates | |
Command 2: caskupgrade - Install updates | |
To Install: | |
- Make sure you have homebrew installed, and some casks | |
- Install homebrew-cask-upgrade using: "brew tap buo/cask-upgrade" without the quotes | |
- Put everything in between the dotted lines into your ~/.bash_profile | |
................................................. | |
# Check for updates | |
caskchk() { | |
caskChkCommand="$(brew cask outdated)" | |
if [[ $caskChkCommand ]]; then | |
echo | |
echo "Outdated:" | |
echo | |
echo "$caskChkCommand" | |
echo | |
else | |
echo | |
echo "Casks are already up-to-date." | |
echo | |
fi | |
} | |
# Install updates | |
alias caskupgrade='brew cu -a -y --cleanup' | |
................................................. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment