Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active February 25, 2019 18:52
Show Gist options
  • Save ChristopherA/a598762c3967a1f77e9ecb96b902b5db to your computer and use it in GitHub Desktop.
Save ChristopherA/a598762c3967a1f77e9ecb96b902b5db to your computer and use it in GitHub Desktop.
Update MacOS & Install Command Line Interface
# curl -L https://gist.githubusercontent.com/ChristopherA/a598762c3967a1f77e9ecb96b902b5db/raw/macupdatecli.sh | bash
sudo -v
sudo /usr/sbin/softwareupdate -l
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
sudo /usr/sbin/softwareupdate -ia
rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment