Skip to content

Instantly share code, notes, and snippets.

@NotAlexNoyle
Created March 29, 2019 20:51
Show Gist options
  • Save NotAlexNoyle/71d2563f243db10e9a4a2908eb83ded5 to your computer and use it in GitHub Desktop.
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
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