Skip to content

Latest commit

 

History

History
90 lines (65 loc) · 3.36 KB

README.md

File metadata and controls

90 lines (65 loc) · 3.36 KB

Steps to bootstrap a new Mac

  1. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew.
xcode-select --install
  1. Set up ssh key for github more info on generating ssh keys more info on adding ssh keys to github
ssh-keygen -t ed25519 -C "github@email.com"
  1. Add local git config with username and email
touch ~/.gitconfig_local
[user]
    name = example
    email = github@email.com
  1. Clone repo into new hidden directory.
# Use SSH (if set up)...
git clone git@github.com:austinhallett/dotfiles.git ~/.dotfiles

# ...or use HTTPS and switch remotes later.
git clone https://github.com/austinhallett/dotfiles.git ~/.dotfiles
  1. Create symlinks in the Home directory to the real files in the repo.
# There are better and less manual ways to do this;
# investigate install scripts and bootstrapping tools.

ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
  1. Install Homebrew, followed by the software listed in the Brewfile.
# These could also be in an install script.

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

# Then pass in the Brewfile location...
brew bundle --file ~/.dotfiles/Brewfile

# ...or move to the directory first.
cd ~/.dotfiles && brew bundle
  1. Install FiraCode font for spaceship prompt

  2. Create symbolic link for vscode settings

# first remove created settings file
rm ~/Library/Application\ Support/code/User/settings.json
# create symlink
ln -s ~/.dotfiles/vscode/settings.json ~/Library/Application\ Support/code/User/settings.json

TODO List

  • Learn how to use defaults to record and restore System Preferences and other macOS configurations.
  • Organize these growing steps into multiple script files.
  • Automate symlinking and run script files with a bootstrapping tool like Dotbot.
  • Revisit the list in .zshrc to customize the shell.
  • Make a checklist of steps to decommission your computer before wiping your hard drive.
  • Create a bootable USB installer for macOS.
  • Integrate other cloud services into your Dotfiles process (Dropbox, Google Drive, etc.).
  • Find inspiration and examples in other Dotfiles repositories at dotfiles.github.io.
  • And last, but hopefully not least, take my course, Dotfiles from Start to Finish-ish!

Thank You!

I offer the most massive of thanks to Jeff for giving me a few minutes on his stage. Please thank him for me by liking, sharing, subscribing, and taking a look at fireship.io.