-
-
Save patrikthors/d3c294b13077496c99b5d8a8c8f44f0f to your computer and use it in GitHub Desktop.
How to keep your mac software updated easily (2024)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
brew update && brew upgrade && brew cu --all --yes --cleanup && mas upgrade && brew cleanup | |
# Dump all taps, apps, casks, mac apps and vscode extensions into Brewfile | |
brew bundle dump --force --describe --file="${BREWFILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment