I learned about dotfiles from Patrick McDonald (cf. eieioxyz/dotfiles_macos repo).
Bootstrapping is automated with Dotbot.
code --list-extensions > "$DOTFILES/vscode/vscode_extensions"
-
xcode-select --install
(Command Line Tools are required for Git and Homebrew) -
Install Homebrew and add it to the path:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/benpatterson/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"`
-
git clone https://github.com/bmizepatterson/dotfiles_macos.git ~/.dotfiles
. We'll start withhttps
but switch tossh
after everything is installed. -
cd ~/.dotfiles
-
If necessary,
git checkout <another_branch>
. -
If necessary, make changes to Brewfile directly.
-
Restart computer.
-
Setup up Dropbox (use multifactor authentication!) and allow files to sync before setting up dependent applications.
-
Generate ssh key, add to GitHub, and switch remote URLs.
# Generate SSH key in default location (~/.ssh/config) ssh-keygen -t ed25519 -C "[email protected]" # Start the ssh-agent eval "$(ssh-agent -s)" # Create config file with necessary settings << EOF > ~/.ssh/config Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_ed25519 EOF # Add private key to ssh-agent ssh-add -K ~/.ssh/id_ed25519 # Copy public key and add to github.com > Settings > SSH and GPG keys pbcopy < ~/.ssh/id_ed25519.pub # Test SSH connection, then verify fingerprint and username # https://help.github.com/en/github/authenticating-to-github/testing-your-ssh-connection ssh -T [email protected] # Switch from HTTPS to SSH git remote set-url origin [email protected]:bmizepatterson/dotfiles_macos.git