Skip to content

Instantly share code, notes, and snippets.

@gundamew
Created September 1, 2018 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gundamew/f904f0257938f1fe536890a153bae4ce to your computer and use it in GitHub Desktop.
Save gundamew/f904f0257938f1fe536890a153bae4ce to your computer and use it in GitHub Desktop.
Script to update Homebrew and Composer packages.
#!/usr/bin/env bash
set -euo pipefail
echo "Updating Homebrew..."
brew update && brew upgrade && brew cleanup
echo "Updating Composer..."
composer self-update --clean-backups && composer g update && composer g dump-autoload
#composer g clear-cache
echo "Updating Vim plugins..."
vim +PlugUpgrade +PlugUpdate +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment