-
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
${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile # ${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
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig ${HOME}/.gitconfig # cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig.moj ${HOME}/.gitconfig
-
Create Hyper Configuration
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/hyper/hyper.js ${HOME}/.hyper.js
-
Create GPG Configuration
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/gpg.conf ${HOME}/.gnupg/gpg.conf cp ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/gpg-agent.conf ${HOME}/.gnupg/gpg-agent.conf
-
Import and Trust GPG Public Key
gpg --import ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/[email protected] gpg --edit-key [email protected] trust 5 y
-
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