Mac setup

By Tom Hastjarjanto and Editors

Xcode Command line technologies

xcode-select --install

Brew

Homebrew is the defacto default package manager for MacOS applications. The latest versions allow you to install not only CLI/background packages, but also popular UI applications using Brew Cask. To install Homebrew use:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gpg grep pyenv htop jq yq tree zsh birwarden-cli firefox iterm2 adobe-acrobat-reader slack bitwarden discord visual-studio-code tutanota node

Oh my zsh

See https://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

SSH Key

ssh-keygen -t ed25519 -C "tom@intellicode.nl"
eval "$(ssh-agent -s)"

Configure ssh config

touch ~/.ssh/config
vi ~/.ssh/config

Add:

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

Add your SSH private key to the ssh-agent and store your passphrase in the keychain:

ssh-add -K ~/.ssh/id_ed25519

GPG

Use the defaults (ECC and curve 25519):

gpg --full-generate-key

Use this command to find the key ID:

gpg --list-secret-keys --keyid-format=long

Export the key

gpg --armor --export key_id

Paste it in Github

Add gpg to your zsh

if [ -r ~/.zshrc ]; then echo 'export GPG_TTY=$(tty)' >> ~/.zshrc; \
  else echo 'export GPG_TTY=$(tty)' >> ~/.zprofile; fi

Git

git config --global user.name "Tom Hastjarjanto"
git config --global user.email tom@intellicode.nl
git config --global core.editor vim
git config --global user.signingkey key_id
git config --global commit.gpgsign true

Visual Studio Code

Security


Tom Hastjarjanto has been using React.js since 2015. Connect with him at Twitter or LinkedIn.