Skip to content

Instantly share code, notes, and snippets.

@caingougou
Last active February 4, 2023 19:02
Show Gist options
  • Save caingougou/d8931dfbcb975771c0ba to your computer and use it in GitHub Desktop.
Save caingougou/d8931dfbcb975771c0ba to your computer and use it in GitHub Desktop.
Mac OS X install script
# install xcode
xcode-select --install
# install homebrew http://brew.sh/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install coreutils
brew install findutils
# install git
brew install git
brew install caskroom/cask/brew-cask
brew update && brew upgrade
brew tap homebrew/dupes
brew tap homebrew/php
brew install --without-apache --with-fpm --with-mysql php55
#install composer for php
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# install zsh https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# install rvm https://rvm.io/
curl -sSL https://get.rvm.io | bash
# install ruby
rvm install 1.8.7
# install nodejs
brew install node
npm install -g nvm
nvm install 4.1.2
nvm use 4.1.2
nvm alias default 4.1.2
nvm use default
npm install -g bower
npm install -g gulp
# install pip
sudo easy_install pip
# install elixir
brew install elixir
# install golang
echo "
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin" >> ~/.zshrc
brew install go
brew install mercurial
mkdir $gopath
mkdir -p $gopath/src/github.com/$user
go get golang.org/x/tools/cmd/godoc
go get golang.org/x/tools/cmd/vet
# install scala
brew install scala
# install applications
brew-cask install alfred
brew-cask install google-chrome
brew-cask install qlcolorcode
brew-cask install firefox
brew-cask install qlmarkdown
brew-cask install flash
brew-cask install qlprettypatch
brew-cask install virtualbox
brew-cask install atom
brew-cask install quicklook-json
brew-cask install skype
brew-cask install evernote
brew-cask install onedrive
brew-cask install sequel pro
brew-cask install the unarchiver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment