My macOS setup from scratch using yadm.
GNU
utils, dev setup, app, configs & Mac App Store installs.
/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)"
brew install yadm
(for mas
) via App Store > Preferences > Sign in
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.
Configure (new or existing) ssh key and add it to GitHub, then add key to ssh-agent and ~/.ssh/config
. Then test:
ssh -T [email protected]
# yadm wraps git, e.g.:
yadm status
yadm add <file>
yadm commit
yadm push
# etc
# List files under yadm control:
yadm list -a