ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
brew install bash-completion git wget imagemagick node mysql mitmproxy
here we install:
- Google Chrome
- Firefox
- iTerm2
- Sublime Text 3
- Slack
brew cask install google-chrome firefox iterm2 sublime-text3 slack
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
ln -s /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app ~/Desktop/
- bettertouchtool - download: http://www.bettertouchtool.net
Refer to - https://github.com/sindresorhus/quick-look-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package
behind the secne will install docker-machines, docker-compose and Oracle virturalbox.
brew cask install dockertoolbox
basic usage: https://docs.docker.com/installation/mac/
# settings
git config --global branch.autosetupmerge true
git config --global push.default tracking
# display
git config --global log.decorate short
git config --global color.ui auto
git config --global color.interactive auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.status auto
git config --global pager.status true
git config --global pager.show-branch true
git config --global format.numbered auto
# shorts
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.ru "remote update"
git config --global alias.br branch
git config --global alias.cam "commit -a -m"
# utils
git config --global alias.praise blame
git config --global alias.staged "diff --cached"
git config --global alias.unstaged diff
git config --global alias.both "diff HEAD"
git config --global alias.oneline "log --oneline"
git config --global alias.amend "commit --amend"
git config --global alias.undo "reset --hard HEAD^"
git config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit --all"
git config --global alias.myhist '!git log --author="$(git config user.name)" --format=%H |xargs git show --name-only --format=-------------%n%Cred%s%Creset%n%Cblue%h%Creset'
this list will not update anymore, please refer to:
https://paper.dropbox.com/doc/Mac-OSX-Setup-DZCdIUDAJbkU45MKI2Ssx