Skip to content

pndurette/mac-setup

Repository files navigation

macOS setup

My macOS setup from scratch using yadm. GNU utils, dev setup, app, configs & Mac App Store installs.

License: MIT

Pre-setup

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Add brew to the path for this session
eval "$(/opt/homebrew/bin/brew shellenv)"

Install yadm

brew install yadm

Log into the Mac App Store

(for mas) via App Store > Preferences > Sign in

Setup

Clone and bootstrap

export BOOTSTRAP_LOCALAPPS=1 # To install Applications casks under ~/Applications
export BOOTSTRAP_PERSO=1     # To install non-work Applications
yadm clone https://github.com/pndurette/mac-setup.git --bootstrap # https!

NB: Bootstraping updates the remote url to ssh, so an ssh key will have to be configured after this (see below).

NB: There might be some need to enter the sudo password.

NB: Mac App Store installs will ask for a login.

Done!


Extra

Add ssh key

Configure (new or existing) ssh key and add it to GitHub, then add key to ssh-agent and ~/.ssh/config. Then test:

Cheat sheet

# yadm wraps git, e.g.:
yadm status
yadm add <file>
yadm commit
yadm push
# etc

# List files under yadm control:
yadm list -a

See: https://yadm.io/docs/common_commands