Skip to content

Instantly share code, notes, and snippets.

@kristiewirth
Last active May 4, 2022 18:36
Show Gist options
  • Select an option

  • Save kristiewirth/725ae50261dbaa6cd922bfd1932a178b to your computer and use it in GitHub Desktop.

Select an option

Save kristiewirth/725ae50261dbaa6cd922bfd1932a178b to your computer and use it in GitHub Desktop.
####
# 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