Skip to content

Commit

Permalink
brew upgrade doesn't upgrade casks
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhard committed Jul 6, 2015
1 parent 93eb026 commit be8f295
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ main() {
os_x_software_update
update_package_sources
upgrade_installed_packages
upgrade_installed_casks
. libconfig/homebrew_htop
# update go pkgs
update_vim_plugins
Expand All @@ -24,12 +25,22 @@ upgrade_installed_packages() {
brew upgrade --all
}

upgrade_installed_casks() {
local cask

brew cask list | while read -r cask
do
brew cask install "$cask"
done
}

update_vim_plugins() {
vim +PluginUpdate +PluginClean! +qall
}

cleanup() {
brew cleanup -s --force
brew cask cleanup
}

main

0 comments on commit be8f295

Please sign in to comment.