Trackpad settings

System Preferences -> Trackpad:

  • Secondary click by right corner
  • Enable Tap to Click
  • Disable Scroll Direction: Natural

Keyboard settings

System Preferences -> Keyboard:

  • Maximum Key Repeat
  • Maximum Delay Until Repeat
  • Enable Use F1, F2, etc as standard

CapsLock to switch languages

Reference: stackoverflow

  1. Install Karabiner-elements: https://github.com/tekezo/Karabiner-Elements
  2. Remap CapsLock to f19
  3. System Preferences -> Keyboard -> Key modifiers: disable CapsLock
  4. System Preferences -> Keyboard -> Shortcuts -> Input Sources: press CapsLock to change languages

Configs

.ssh/config

Host dev # alias name
    HostName <full host name>
    User <user name>

.vimrc

git clone https://github.com/pankdm/configs.git
ln -s configs/.vimrc ~/.vimrc

.bash_profile

export CLICOLOR=1 # enable colored `ls`

Install brew

See http://brew.sh

Install mosh

brew install mosh

Install powerline

Reference:

pip install --user git+git://github.com/powerline/powerline

# find installed path
pip show powerline-status

# it will be something like
# /Users/${USER}/Library/Python/2.7/lib/python/site-packages
# pip installation is missing scripts so we need to copy them manually
POWERLINE_PATH=~/Library/Python/2.7/lib/python/site-packages/

git clone https://github.com/powerline/powerline.git
cp -r powerline/powerline/ $POWERLINE_PATH/powerline
cp -r powerline/scripts/ $POWERLINE_PATH/scripts

# create directory with configs
mkdir ~/.config/powerline
cp -r ./powerline/powerline/config_files/ .config/powerline/

Enable powerline for bash by adding the following line to ~/.bash_profile:

POWERLINE_PATH=~/Library/Python/2.7/lib/python/site-packages/
source $POWERLINE_PATH/powerline/bindings/bash/powerline.sh