example setup

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#########  BASIC  #########

# brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# brew cask
brew tap caskroom/cask
brew tap homebrew/cask-fonts

# brew doctor
brew doctor

# zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# change default shell to zsh
chsh -s $(which zsh)



# iTerms2

# add Solarized Dark theme
curl -o /tmp/solarized-dark-patched.itermcolors https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Solarized%20Dark%20-%20Patched.itermcolors

## need manual load solarized-dark-patched.itermcolors into iTerms2


# add powerline font
brew cask install font-meslo-for-powerline


# add powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

## TODO
sed -i '/ZSH_THEME=robbyrussell/b;n;cZSH_THEME="powerlevel9k/powerlevel9k"' ~/.zshrc


# ZSH
brew install zsh-syntax-highlighting

echo '\n#[CUSTOM] zsh syntax highlight config\nsource /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc



# specify brew in zsh
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc



# source zsh configuration
source ~/.zshrc

#########  APPLICATION  #########

# Quick Look plugins
brew cask install \
  qlcolorcode \
  qlstephen \
  qlmarkdown \
  quicklook-json \
  qlprettypatch \
  quicklook-csv \
  betterzip \
  webpquicklook \
  suspicious-package


# Common Application
brew cask install \
  alfred \
  caffeine \
  cheatsheet \
  chromium \
  dropbox \
  google-chrome \
  istat-menus \
  keka \
  pdf-expert \
  proxifier \
  wechat \
  vlc \
  1password


# Application Toolkit
brew cask install \
  anaconda \
  docker \
  intellij-idea-ce \
  iterm2 \
  keepassx \
  sourcetree \
  sublime-text \
  virtualbox \
  visual-studio-code


# Command Line Toolkit
brew install \
  aria2 \
  awscli \
  htop \
  imagemagick \
  jq \
  mas \
  screen \
  tmux \
  tree \
  wget \
  xclip \
  you-get \



#########  MAC APP STORE  #########

mas install \
  497799835 \             # Xcode
  540348655 \             # Monosnap: Screenshot Utility
  1176895641 \            # Spark: EMail Client

Reference