Skip to content

Instantly share code, notes, and snippets.

@josephmidura
Last active July 2, 2023 18:40
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephmidura/807770766aeb37b9cc3897e26f870210 to your computer and use it in GitHub Desktop.
Save josephmidura/807770766aeb37b9cc3897e26f870210 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Light blue looks good with my current colorscheme
TEXTCOLOR='\033[1;34m'
# Update homebrew, and local base of available packages and versions
printf "${TEXTCOLOR}Updating homebrew and local base of available packages and
versions...\n"
brew update
# Install new versions of outdated packages
printf "${TEXTCOLOR}Upgrading outdated homebrew packages...\n"
brew upgrade
# Cache cleanup of unfinished downloads
printf "${TEXTCOLOR}Cleaning cache of unfinished downloads...\n"
brew cleanup
# Show problems if any
printf "${TEXTCOLOR}Checking for issues...\n"
brew doctor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment