https://github.com/jacobwoffenden/mac
My macOS bootstrap files
https://github.com/jacobwoffenden/mac
mac-bootstrap
Last synced: about 1 year ago
JSON representation
My macOS bootstrap files
- Host: GitHub
- URL: https://github.com/jacobwoffenden/mac
- Owner: jacobwoffenden
- Created: 2021-08-24T19:08:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T17:25:52.000Z (over 1 year ago)
- Last Synced: 2025-04-10T13:17:32.887Z (about 1 year ago)
- Topics: mac-bootstrap
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mac
1. Determine Architecture
```bash
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
```
1. Install Xcode Tools
```bash
xcode-select --install
```
1. Install Rosetta 2
```bash
if [[ "${APPLE_SILICON}" == "true" ]]; then
softwareupdate --install-rosetta --agree-to-license
fi
```
1. Install Homebrew
```bash
/bin/bash -c "$( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh )"
```
1. Install Oh My Zsh
```bash
/bin/bash -c "$( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh )"
```
1. Create Directory
```bash
mkdir -p ${HOME}/Developer/github.com/jacobwoffenden
```
1. Clone Repository
```bash
git clone https://github.com/jacobwoffenden/mac.git ${HOME}/Developer/github.com/jacobwoffenden/mac
```
1. Install Brew Packages
* Personal
```bash
${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile
```
* Work
```bash
${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile.moj
```
1. Create ZSH Configuration
```bash
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/zsh/zshrc ${HOME}/.zshrc
```
1. Create Git Configuration
* Personal
```bash
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig ${HOME}/.gitconfig
```
* Work
```bash
cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig.moj ${HOME}/.gitconfig
```
1. Create Ghostty Configuration
```bash
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
```