#!/bin/bash # Requirements: # - homebrew: https://brew.sh/ # - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade # - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas) # # Install the requirements by running: # brew tap buo/cask-upgrade && brew install mas # CONFIG: # Set your Brewfile path. BREWFILE="${HOME}/Brewfile" # COMMANDS: # Update, upgrade all and cleanup (prune all) brew update-if-needed && brew upgrade && brew cu --all --yes --cleanup && mas upgrade && brew cleanup --prune=all # Dump all taps, apps, casks, mac apps and vscode extensions into Brewfile brew bundle dump --force --describe --file="${BREWFILE}"