-
Determine 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 Tools
xcode-select --install
-
Install Rosetta 2
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 )"
-
Install Oh My Zsh
/bin/bash -c "$( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh )"
-
Create Directory
mkdir -p ${HOME}/Developer/github.com/jacobwoffenden
-
Clone Repository
git clone https://github.com/jacobwoffenden/mac.git ${HOME}/Developer/github.com/jacobwoffenden/mac
-
Install Brew Packages
-
Personal
${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile
-
Work
${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile.moj
-
-
Create ZSH Configuration
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/zsh/zshrc ${HOME}/.zshrc
-
Create Git Configuration
-
Personal
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig ${HOME}/.gitconfig
-
Work
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig.moj ${HOME}/.gitconfig
-
-
Create Ghostty Configuration
mkdir -p ${HOME}/Library/Application\ Support/com.mitchellh.ghostty/config cp ${HOME}/Developer/github.com/jacobwoffenden/mac/ghostty/config ${HOME}/Library/Application\ Support/com.mitchellh.ghostty/config
-
Notifications
You must be signed in to change notification settings - Fork 0
jacobwoffenden/mac
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
My macOS bootstrap files