This post was initially published on November 24, 2016.

Here's some random setup for MacBook Pro, in case I forget to do this next time I install OS from scratch.

System Preferences/Keyboard

  • Configure Caps Lock to behave as Control key
  • Add a new keyboard shortcut for Finder to assign tags via Command + Control + T
  • Add a new keyboard shortcut to Zoom window by pressing Command + Control + Option + Shift + Z

Homebrew

Configure HOMEBREW_GITHUB_API_TOKEN (refer to brew search して GitHub API rate limit で怒られたときの対処方法).

export HOMEBREW_GITHUB_API_TOKEN=xxxyyyzzz...

Zsh

After installing zsh from Homebrew, refer to Use Homebrew zsh instead of the OS X default

Install pyenv and rbenv

brew install pyenv rbenv
pyenv install 2.7.12
rbenv install 2.3.3

Then go ahead and install Jekyll on macOS.

Install MacTex

Install MacTex via Homebrew so I can generate PDF via Pandoc

brew cask install mactex
PATH="${PATH}:/usr/local/texlive/2016/bin/x86_64-darwin"
export PATH