Skip to content

Instantly share code, notes, and snippets.

@sunnycmf
Last active March 7, 2017 06:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sunnycmf/0b7e4a2e94b1cb5097a3 to your computer and use it in GitHub Desktop.
Save sunnycmf/0b7e4a2e94b1cb5097a3 to your computer and use it in GitHub Desktop.
Mac OSX Yosemite dev env setup script

Mac OSX softwares and env setup

install homebrew & cask

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

Dev tools

brew install bash-completion git wget imagemagick node mysql mitmproxy

Softwares

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/

Quicklook plugins

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

Optional Softwares

Docker

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

brew cask install dockertoolbox

basic usage: https://docs.docker.com/installation/mac/

Day-to-day Commuications

Slack

http://heha.slack.com

JIRA

https://jira.iheha.com

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 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'
@sunnycmf
Copy link
Author

sunnycmf commented Mar 7, 2017

this list will not update anymore, please refer to:
https://paper.dropbox.com/doc/Mac-OSX-Setup-DZCdIUDAJbkU45MKI2Ssx

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