Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mac OSX Yosemite dev env setup script

Mac OSX softwares and env setup

install homebrew & cask

ruby -e "$(curl -fsSL"
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

Dev tools

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" /usr/local/bin/sublime
ln -s /Applications/\ ~/Desktop/

Quicklook plugins

Refer to -

brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package

Optional Softwares


behind the secne will install docker-machines, docker-compose and Oracle virturalbox.

brew cask install dockertoolbox

basic usage:

Day-to-day Commuications



git config

# 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 true
git config --global format.numbered auto
# shorts
git config --global status
git config --global commit
git config --global checkout
git config --global "remote update"
git config --global branch
git config --global "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" --format=%H |xargs git show --name-only --format=-------------%n%Cred%s%Creset%n%Cblue%h%Creset'

This comment has been minimized.

Copy link
Owner Author

@sunnycmf sunnycmf commented Mar 7, 2017

this list will not update anymore, please refer to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment