My personal tweaks on macOS. Tweak it as you like it, dotfiles are meant to be forked.
Includes:
1. Check for software updates.
$ sudo softwareupdate -i -r
2. Install it all.
don't just like run this, check the file contents!.
$ curl -L https://raw.github.com/diessica/dotfiles/master/bootstrap.sh | sh
3. Tell Git who you are.
I prefer doing it in a separate
.gitlocal
file, referred by.gitconfig
.
$ git config -f ~/.gitlocal user.email "{Your email}"
4. Generate SSH keys and add them to GitHub.
ssh-keygen -t ed25519 -C "{Work email}" -f ~/.ssh/id_ed25519
ssh-keygen -t ed25519 -C "{Personal email}" -f ~/.ssh/id_personal
5. Tell npm who you are.
$ npm set init.author.name "{Your name}"
$ npm set init.author.email "{Your email}"
$ npm set init.author.url "{Your URL}"
$ npm adduser
Have fun!
Inspired by Holman, Mathias Bynens, Deny Dias and this question.