Last active
May 4, 2022 18:36
-
-
Save kristiewirth/725ae50261dbaa6cd922bfd1932a178b to your computer and use it in GitHub Desktop.
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
| #### | |
| # Source: some commands from https://medium.com/@waxzce/keeping-macos-clean-this-is-my-osx-brew-update-cli-command-6c8f12dc1731 | |
| # Run: $ `bash update-all-the-things.sh` | |
| #### | |
| # Update command line tools | |
| softwareupdate --all --install --force | |
| # Clean up brew | |
| brew update && brew upgrade && brew cleanup -s | |
| # Upgrade Mac apps from app store (need to run `brew install mas` first) | |
| mas upgrade | |
| # Remove files & folders than 30 days in Downloads folder | |
| find Downloads/ -ctime +30 -print0 | xargs -0 rm -r | |
| # Update all pip | |
| pip install --upgrade pip | pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U | |
| # Check if I broke anything with pip | |
| echo "---------------------------------------------------------------------------" | |
| echo "PIP CHECK RESULTS:" | |
| pip check | |
| echo "---------------------------------------------------------------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment