Skip to content

Instantly share code, notes, and snippets.

@lgawin
Last active January 6, 2021 14:24
Show Gist options
  • Save lgawin/816523dc113335f1ee9f72611d846863 to your computer and use it in GitHub Desktop.
Save lgawin/816523dc113335f1ee9f72611d846863 to your computer and use it in GitHub Desktop.
Initialize MacOsX

Initialize Mac

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Brew bundle

curl -sL "https://gist.githubusercontent.com/lgawin/816523dc113335f1ee9f72611d846863/raw/Brewfile" --output Brewfile
brew bundle install

Scripts

  • mac-init.sh
curl -sL "https://git.io/JLATK" | bash
cask_args appdir: "/Applications"
# Apps
cask "google-chrome"
#!/bin/bash
xcode-select --install > /dev/null 2>&1
if [ 0 == $? ]; then
sleep 1
osascript <<EOD
tell application "System Events"
tell process "Install Command Line Developer Tools"
keystroke return
click button "Agree" of window "License Agreement"
end tell
end tell
EOD
else
echo "Command Line Developer Tools are already installed!"
fi
@lgawin
Copy link
Author

lgawin commented Jan 6, 2021

Short link: https://git.io/JLAey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment