I use these scripts to bootstrap new machines, install software and prevent configuration drifts between my personal laptop and the one I use at work.
Generate SSH keys, copy them, and add them to Github:
ssh-keygen -t rsa -b 4096 -f ~/.ssh/personal
pbcopy < ~/.ssh/personal.pub
ssh-keygen -t rsa -b 4096 -f ~/.ssh/work
pbcopy < ~/.ssh/work.pub
Clone this as a bare git repository:
git clone --bare [email protected]:creativecreature/dotfiles.git $HOME/.cfg
Checkout the bare repository content to the home directory:
./checkout.sh
Run the bootstrap script to install software, create ssh keys, download oh-my-zsh, etc.
./bootstrap.sh