Last active
May 6, 2023 05:09
-
-
Save JonathanWThom/a8cb943dcb751f6774dfb9f177ab9d1b to your computer and use it in GitHub Desktop.
Script I use to update my Mac
This file contains 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/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