my osx setup post at:


# Enable full keyboard access for all controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
defaults write QuitMenuItem -bool true

# Avoid creating .DS_Store files on network volumes
defaults write DSDontWriteNetworkStores -bool true

# Disable the warning when changing a file extension
defaults write FXEnableExtensionChangeWarning -bool false

# Enable tap to click (Trackpad)
defaults write Clicking -bool true

# Enable Safari’s debug menu
defaults write IncludeInternalDebugMenu -bool true

# To pin the dock to the right bottom
defaults write pinning -string end
defaults write orientation -string right

# Only Show Open Applications In The Dock
defaults write static-only -bool true

defaults write tilesize -int 24
defaults write QLEnableTextSelection -bool true

# disable dashboard
defaults write mcx-disabled -boolean true

xcode with Command Line Tools

# xcode by appstore
open /Applications/App\

# CUI Downloader of "Command Line Tools for Xcode" [dlclt]
xcode-select --install


ruby -e "$(curl -fsSL"

brew install coreutils fish tmux wget axel aria2 vim ctags git python3 node mysql mongodb redis


git clone git:// .pyenv
sudo easy_install -U setuptools #upgrade setuptools for pip
sudo easy_install pip
sudo pip install virtualenvwrapper

#optional use douban pypi mirror
vim ~/.pip/.pip.cof
index-url =



brew tap phinze/homebrew-cask
brew install brew-cask

brew cask install iterm2 alfred macvim sourcetree nvalt xquartz sequel-pro bettertouchtool amethyst mplayerx google-chrome controlplane dropbox bittorrent-sync colors skim geektool keyremap4macbook pckeyboardhack

#install quicklook plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql webp-quicklook suspicious-package

brew cask alfred



remap caps lock as hyperkey to toggle alfred or hold like modify key with shift+ctrl+opt+cmd