Skip to content

Instantly share code, notes, and snippets.

@khys
Last active June 12, 2025 10:44
Show Gist options
  • Save khys/5fda5b8db75a94508d3a98e87380fbaf to your computer and use it in GitHub Desktop.
Save khys/5fda5b8db75a94508d3a98e87380fbaf to your computer and use it in GitHub Desktop.
Health-check script for Homebrew.
#!/bin/bash
echo "> brew upgrade --cleanup"
brew upgrade --cleanup
echo "> brew cleanup -s"
brew cleanup -s
echo "> brew prune -n"
brew prune -n
echo "> brew prune"
brew prune
echo "> brew bundle --global check"
brew bundle --global check
echo "> brew bundle --global cleanup"
brew bundle --global cleanup
echo "> brew doctor"
brew doctor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment