Stole some stuff from github dotfiles.