- Set system architecture
if [[ "$( uname -m )" == "arm64" ]]; then
export APPLE_SILICON="true"
export BREW_BINARY="/opt/homebrew/bin/brew"
else
export APPLE_SILICON="false"
export BREW_BINARY="brew"
fi
- Install Xcode
xcode-select --install
- Install Rosetta 2 if Apple Silicon
if [[ "${APPLE_SILICON}" == "true" ]]; then
softwareupdate --install-rosetta --agree-to-license
fi
- Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Clone this repository
git clone https://github.com/baesystemsdigitalintelligence/mac-setup.git
- Run Brew
${BREW_BINARY} bundle --file mac-setup/Brewfile
- Run Brew
${BREW_BINARY} bundle --file mac-setup/Brewfile.developer