Mostly for myself when setting up macOS.

Allow me to introduce two sites before The main dish:

Original Macintosh - Anecdotes about the development of Apple’s original Macintosh, and the people behind it.

Apple Archive

Symbol for keys:

Command (or Cmd) ⌘
Shift ⇧
Option (or Alt) ⌥
Control (or Ctrl) ⌃
Caps Lock ⇪

⌥+⇧+] for typing (instead of normal ').

Faster key response

I really cannot live without this.

defaults write -g KeyRepeat -int 2
defaults write -g InitialKeyRepeat -int 12

numbers mean:

KeyRepeat: 120, 90, 60, 30, 12, 6, 2
InitialKeyRepeat: 120, 94, 68, 35, 25, 15
lower equals faster

Sudo with Touch ID

Add this line to /etc/pam.d/sudo:

auth       sufficient

Enable Audio Codec

For better headlphone performance.

sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true

On Paste

System Preferences > Keyboard > App Shortcuts > All Applications

add "Paste and Match Style" ⌘V
add "Paste" ⌘V


Turn off preview thumbnail when taking Screenshot

⌘+⇧+5, options, turn off thumbnail.

Show Hidden files

defaults write AppleShowAllFiles YES

Open App from 3rd-party developer

defaults write /Library/Preferences/ GKAutoRearm -bool NO


Turned on Expanded Control Strip & Remove Siri.

See this post.

Restart Touchbar

pkill "Touch Bar agent";
killall "ControlStrip";

Sign PDF by Preview

Fill out and sign PDF forms in Preview on Mac.


Orta’s Keyboard Shortcuts and Apple’s official guide.


Git & GitHub

Install hub

git config --global "Your Name"
git config --global ""
git config --global checkout
git config --global branch
git config --global alias.lp local-push
git config --global color.ui true
git config --global core.editor "subl -w"
git config --global core.excludesfile ~/.gitignore_global
git config --global diff.noprefix true

Add SSH key on GitHub

ssh-keygen -t rsa -b 4096 -C ""
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
pbcopy < ~/.ssh/


  • Sublime Text 3

    ln -s "/Applications/Sublime" /usr/local/bin/sublime

    Oceanic Next Color Scheme with Oxygen Mono font.

  • TotalFinder

    • download and install
    • restart to recovery mode (hold ⌘R)
    • $ csrutil disable
    • restart
    • restart to recovery mode (hold ⌘R)
    • $ csrutil enable

Open file by editor on iTerm2

Zip sharing

$ zip -e file
Enter password:
Verify password:

US keyboard setting to quickly switch to Japanese

Download Karabiner Elements, import rules for Japanese, then enable: