- System Preferences
- Development Environment
- Setup Hammerspoon (for shortcuts)
- Setup HiDPI for 2K monitor
- Other apps
This is an updated version for Sierra and El Capitan guide for three years. It is basically a cheatsheet for me to finish the setup after a clean re-installation. This guide is completely third-party and is only for reference because I know developers always have their own eccentricity based on the degree of their lazy.
System Preferences
Backup
Backup all important files and folders in ~
(music and photos if necessary)
Backup all setups and packages in Sublime text (need to do only once):
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
$ mkdir ~/Dropbox/apps/Sublime
$ mv User ~/Dropbox/apps/Sublime/
$ ln -s ~/Dropbox/apps/Sublime/User
Backup ~/.ssh/id_rsa*
: the reason is that you might want to have many SSH connections depending on this. Backup the id_rsa
and id_rsa.pub
by using the following command:
$ cp -r ~/.ssh <your/backup/path>;
Basics
-
Setup Dock: this is completely personal.
- Automatically hide and show the Dock
- Enable magnification;
- Minimize windows into application icon (not a fan of really long dock);
- Add Chinese simplified Input method and check “Use Caps Lock to switch input method” option (No need for Karabiner-Elements any more).
- System Preferences > Trackpad > Tap to click.
- Enable three-finger drag: System Preferences > Accessibility > Mouse Trackpad > Trackpad Options > Enable dragging (three fingers). This is a killer function when using Mac’s touchpad. Don’t know why Apple move this switch to this weird place.
- Finder > show all file extensions
- Make good uses of the screen corners: System Preferences > mission control > Hot corners
Development Environment
- Download iTerm2 (Profiles > General: working dir - reuse previous session’s dir; window: transparency/blur/full-width top of screen; In Profiles > Keys, add a new shortcut Option + left and set to
Escape
+b
, Option + right toEscape
+f
, Option + Delete to Send Hex Code0x1B 0x08
, and Fn + Option + Delete toEscape
+d
) - Download Xcode (Start it and agree with terms)
-
Install Sublime Text 3
-
Restore settings from Dropbox:
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
$ rm -r User
$ rm -r Colorsublime-Themes
$ ln -s ~/Dropbox/apps/Sublime/User
$ ln -s ~/Dropbox/apps/Sublime/Colorsublime-Themes
- Install package control:
cmd+shift+p
-> install package control - Theme: El-Capitan-Theme
-
-
Install Atom
-
Restore atom settings from Dropbox:
$ ln -s ~/Dropbox/apps/Atom/.atom ~/.atom
-
- Install Chrome
Install Command Line Tools:
$ xcode-select --install
Install Homebrew:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/masterinstall)"`
$ brew update
Install Node.js
$ brew install node
Install zsh and oh-my-zsh:
$ brew install zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mastertools/install.sh)"` `/usr/local/bin/zsh`
Install Postgres:
$ brew install postgresql
Install MySQL:
$ brew install mysql
Install Python:
$ brew install python
$ brew linkapps python
Install virtualenv:
$ pip install virtualenv
Install virtualenvwrapper:
$ pip install virtualenvwrapper
$ export WORKON_HOME=~/venvs
$ source /usr/local/bin/virtualenvwrapper.sh
Install RVM:
$ \curl -sSL https://get.rvm.io | bash -s stable
Before run:
$ source /Users/hao/.rvm/scripts/rvm
Reload:
$ rvm reload
Put the cmds into ~/.zshrc
:
source $HOME/.rvm/scripts/rvm
export PATH="$PATH:$HOME/.rvm/bin"
Install Ruby:
$ rvm install ruby
Set default:
$ rvm --default use 2.3.1
Install Jekyll:
$ gem install github-pages
Setup Hammerspoon (for shortcuts)
Download. Configuration files hosted on Github.
Clone it to ~/.hammerspoon
.
Setup HiDPI for 2K monitor
Other apps
- Dropbox
- Things3
- 1Password
- Sip
- Sketch
- Skitch
- PDF Expert
- Caffeine
- PureVPN
- Slack
- AppCleaner
- Beamer
- IINA (Video player)