Skip to content

Various configuration files, system settings, and default software packages that I install on all new macbooks for the sake of env consistency.

Notifications You must be signed in to change notification settings

amcnamara/new-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New machine checklist

  • Create a workspace:
mydir ~/Workspace
cd ~/Workspace
  • Install brew, pull down this repo (obviously), and load default set of software:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git
git clone git@github.com:amcnamara/new-machine.git ~/Workspace/new-machine
cd ~/Workspace/new-machine
xargs brew install < brew-all.txt
  • Copy dotfiles to home:
cd ~/Workspace/new-machine
cp .emacs ~
cp .zshrc ~
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • Install consolas font:
open ~/Workspace/new-machine/Consolas.ttf
  • Set tracking speed, key repeat (fastest), and key delay (shortest)
  • Copy OSX App Shortcuts (requires restart):
cd ~/Workspace/new-machine
cp ./GlobalPreferences.plist ~/Library/Preferences/.GlobalPreferences.plist
sudo shutdown -r now
  • Install iTerm2, and additionally set:
    • Load iTerm_default.json profile settings
    • Keys > Remap Modifiers > Left Command ⌘ to Left Control ⌃
    • Keys > Remap Modifiers > Right Command ⌘ to Left Option ⌥
    • General > Selection > Applications in terminal may access clipboard
  • Set default Git profile:
git config --global user.name "Alex McNamara"
git config --global user.email "alex.mcnamara@gmail.com"
  • Setup a GitHub SSH key, and GPG signing key:
git config --global commit.gpgsign true
git config --global tag.gpgSign true
gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long
gpg --armor --export <key-id>
git config --global user.signingkey <key-id>
ssh-keygen -t ed25519 -C "alex.mcnamara@gmail.com"
eval "$(ssh-agent -s)"
touch ~/.ssh/config
cat >> ~/.ssh/config<< EOF
Host github.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519
EOF
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
cat .ssh/id_ed25519.pub
  • Clean up this repo and check for system software updates:
rm -rf ~/Workspace/new-machine
cd ~
softwareupdate -l

About

Various configuration files, system settings, and default software packages that I install on all new macbooks for the sake of env consistency.

Resources

Stars

Watchers

Forks