- 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 ~
- Install ZSH
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 ⌘
toLeft Control ⌃
Keys
>Remap Modifiers
>Right Command ⌘
toLeft Option ⌥
General
>Selection
>Applications in terminal may access clipboard
- Load
- Set default Git profile:
git config --global user.name "Alex McNamara"
git config --global user.email "alex.mcnamara@gmail.com"
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