Last active
April 5, 2022 08:25
-
-
Save yuhui/ad6b869f32c64006958950c95f96c3d0 to your computer and use it in GitHub Desktop.
Update Homebrew and installed brews
This file contains hidden or 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 | |
echo "$ brew analytics off" | |
brew analytics off | |
echo "$ brew update" | |
brew update | |
echo "$ brew upgrade" | |
brew upgrade | |
echo "$ brew autoremove" | |
brew autoremove | |
echo "$ brew cleanup" | |
brew cleanup -s --prune=all | |
echo "$ brew doctor" | |
brew doctor | |
rm -rf $(brew --cache) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment