Skip to content

Instantly share code, notes, and snippets.

@JonathanWThom
Last active May 6, 2023 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanWThom/a8cb943dcb751f6774dfb9f177ab9d1b to your computer and use it in GitHub Desktop.
Save JonathanWThom/a8cb943dcb751f6774dfb9f177ab9d1b to your computer and use it in GitHub Desktop.
Script I use to update my Mac
#!/bin/sh
# Add or `ln -s` this into `/usr/local/bin/`
echo "Updating everything..."
echo "Updating Homebrew and all Homebrew packages"
brew update && brew upgrade && brew cleanup && brew doctor
echo "Updating all programming languages"
# https://asdf-vm.com/guide/getting-started.html to manage most languages
# https://get-coursier.io/ to manage Scala and JVM
asdf plugin update --all
asdf install ruby latest
asdf install golang latest
asdf install nodejs latest
asdf global ruby latest
asdf global golang latest
asdf global nodejs latest
cs list | cs update
echo "Updating all Mac App Store apps"
# brew install mas
# See: https://github.com/mas-cli/mas
mas upgrade
echo "Updating Mac OS, may require restart"
sudo softwareupdate -iaR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment