Based on @jasonkarns's excellent dotfiles example
git clone --no-checkout https://github.com/jxpx777/dotfiles.git
git config core.worktree "$HOME"
git config core.sparseCheckout true
printf '/*\n!README.md' | git sparse-checkout set --stdin
git checkout main
echo "gitdir: ~/dotfiles/.git" > ~/.git
git submodule update --init --recursive
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle