Skip to content

Instantly share code, notes, and snippets.

@ain322
Last active July 14, 2016 16:14
Show Gist options
  • Save ain322/59f430328c4d37b97e2653d0a040ea69 to your computer and use it in GitHub Desktop.
Save ain322/59f430328c4d37b97e2653d0a040ea69 to your computer and use it in GitHub Desktop.
Script to update all applications installed using brew cask
#!/bin/sh
# Blindly updates all the applications previously installed using brew cask
brew update
brew cask list | xargs brew cask info | grep -A 1 "Not installed" | grep "github" | sed 's|https://github.com/caskroom/homebrew-cask/blob/master/Casks/\(.*\)\.rb|\1|' | xargs brew cask install
brew cask cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment