A place to keep track of my personal dotfile configs and setting up a new machine
- Install Homebrew
- Add a new SSH key from the new machine to Github
- Clone this repo to your home directory
- Install
zshandoh-my-zsh, makingzshthe default shell - Clone the thoughtbot dotfiles repo
- Install
rcmand runrcupto symlink dotfiles - Import iTerm preferences and color theme
- Install VS Code and import preferences and install extensions
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Generate the new key:
> ssh-keygen -t rsa -b 4096 -C "[email protected]"
Start the ssh agent:
eval "$(ssh-agent -s)"Then add the following to your ~/.ssh/config:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Add the new SSH private key to the ssh-agent and store the passphrase in the keychain:
ssh-add --apple-use-keychain ~/.ssh/id_rsaCopy the ssh key to your clipboard and add to github:
pbcopy < ~/.ssh/id_rsa.pubgit clone [email protected]:daveashworth/dotfiles-local.gitbrew install zshsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"git clone [email protected]:thoughtbot/dotfiles.git ~/dotfilesbrew tap thoughtbot/formulae
brew install rcmenv RCRC=$HOME/dotfiles/rcrc rcupGo to Preferences > General > Preferences and check "Load preferences from a
custom folder or URL". Set the folder (or url) where you want to load from.
This should be the exported file here: Preferences file
For colors, go to Preferences > Profiles > Colors and click on the "Color
Presets..." dropdown. Choose import and pick the exported color file here:
Color theme file
This assumes VS Code has already been installed on the machine, and in the location ${HOME}/Library/Application Support/Code. If that's not the case, the location will need to be updated in /vscode/init-vscode.sh.
This also assumes you've installed the code shell command in your environment. If not, type command + shift + P inside VS Code and type shell. Click on the option to install the code shell command.
Change directories to the /vscode directory under this repo and run:
./init-vscode.shThis will copy the settings.json file to ${HOME}/Library/Application Support/Code/User, and will attempt to install the extensions listed in the extensions.list file.