New Mac setup.
Use 'xcode-select' to install Xcode Command Line Tools
xcode-select --install
Verify installation of Xcode Command Line Tools
xcode-select -p
# /Library/Developer/CommandLineTools
git --version
# git version 2.30.1 (Apple Git-130)
Basic install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Brew install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add Homebrew shell configuration (needed on Apple Silicon)
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/moreirathomas/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/moreirathomas/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"