Skip to content

Instantly share code, notes, and snippets.

@popcornylu
Forked from howie/createMacEnv.sh
Created October 20, 2015 02:22
Show Gist options
  • Save popcornylu/1279359e36e1e107a4e4 to your computer and use it in GitHub Desktop.
Save popcornylu/1279359e36e1e107a4e4 to your computer and use it in GitHub Desktop.
#Referecne:
# 1. https://gist.github.com/zenorocha/7159780
# 2.
#install xcode command tool
xcode-select --install
# check
xcode-select -p
#
# 安裝Homeber
#
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# check brew
brew doctor
brew update
#
# https://github.com/caskroom/homebrew-cask
#
# Add Repository
brew tap caskroom/cask
brew install brew-cask
brew tap homebrew/binary
# File transfer
brew install wget
brew install curl
brew install ctags
brew install git
# https://duck.sh/
brew install duck
brew cask install filezilla
brew cask install github
# Programing language
brew cask install caskroom/versions/java7
# Default use java8
brew cask install java
brew install jenv
brew install scala
brew install python
brew install go
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils --default-names
# development
brew cask install intellij-idea-ce
brew cask install eclipse-jee
brew install maven
brew install gradle
brew install ansible
# Install useful command line tools
brew install ack # grep for source code
brew install jq # grep for json
brew install json2csv
brew install tree # recursive directory listing command
brew install webkit2png # captures webpage screenshots
brew install parallel
# IAAS cli
brew cask install azure-cli
brew install awscli
# Remote Access
brew cask install royal-tsx
brew cask install iterm2
# for compare file
# brew cask install kaleidoscope
brew cask diffmerge
brew cask install sourcetree
brew cask install cyberduck
# VM
brew cask install virtualbox
brew cask install vagrant
# Install VirtualBox Guest Additions
vagrant plugin install vagrant-vbguest
# Running Docker (http://jesperrasmussen.com/2014/06/02/running-docker-on-homebrew/)
brew install docker
# DB Monitor
brew cask install sequel-pro
brew cask install pgadmin3
brew cask install dbeaver-enterprise
# Editor
brew install vim --with-lua --override-system-vi
brew cask install caskroom-versions/sublime-text3
brew cask install textwrangler
brew cask install kaleidoscope
# System Monitor
brew cask install istat-menus4
brew install htop-osx
brew install hping
# browser
brew cask install google-chrome
brew cask install firefox
# Communication
brew cask install telegram
brew cask install skype
#brew cask install zoom
#brew cask install hipchat
brew cask install slack
# Cloud Storage
brew cask install dropbox
brew cask install google-drive
# Entrainment
brew cask install spotify
#brew cask install popcorn
brew cask install flash
brew cask install mplayerx
# Markdown editor for developers.
brew cask install mou
# other
brew install readline
brew install openssl
#brew cask install alfred
#brew cask alfred link
#brew cask install 1password
brew cask install nally
brew cask install evernote
brew cask install bettertouchtool
brew cask install xquartz
# System Clean
# cask install cleanmymac
brew cask install appcleaner
#brew cask install ccleaner
#brew cask install onyx
#brew cask install adwaremedic
# Personal Kanban
#brew cask install teamviz
brew cask install tomighty
# install QuickLook
# https://github.com/sindresorhus/quick-look-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package
#font
brew tap caskroom/fonts
brew cask install font-source-code-pro
brew cask install font-fontawesome
brew cask install font-inconsolata-dz-for-powerline
# Remove outdated versions from the cellar
brew cleanup
csvkit
#Install CSVKit and check to make sure that it is in your path
pip install csvkit
#
# 安裝YARD dotfile
#
#
#sh -c "`curl -fsSL https://raw.github.com/howie/dotfiles/master/install.sh`"
sh -c "`curl -fsSL https://raw.githubusercontent.com/skwp/dotfiles/master/install.sh`"
#
#
#
cd ~/Downloads
#
# 安裝 agnoster.zsh-theme
# http://rocket-science.ru/shell/2013/04/04/yadr-for-dummies/
#
wget https://gist.githubusercontent.com/agnoster/3712874/raw/c3107c06c04fb42b0ca27b0a81b15854819969c6/agnoster.zsh-theme
mv agnoster.zsh-theme ~/.zsh.prompts/prompt_agnoster_setup
wget https://github.com/downloads/digitalformula/zsh.prompts/get-short-path.zsh.zip
unzip get-short-path.zsh.zip
rm -rf __MACOSX
mv get-short-path.zsh ~/.yadr/zsh
wget https://github.com/downloads/digitalformula/zsh.prompts/git-omz.zsh.zip
unzip git-omz.zsh.zip
mv git-omz.zsh ~/.yadr/zsh
wget https://gist.githubusercontent.com/qrush/1595572/raw/51bdd743cc1cc551c49457fe1503061b9404183f/Inconsolata-dz-Powerline.otf
wget https://gist.githubusercontent.com/qrush/1595572/raw/417a3fa36e35ca91d6d23ac961071094c26e5fad/Menlo-Powerline.otf
wget https://gist.githubusercontent.com/qrush/1595572/raw/2eb22321d590265799aac5b166cd19f8358b0db1/mensch-Powerline.otf
echo "autoload -Uz promptinit" >> ~/.zshrc
echo "promptinit " >> ~/.zshrc
echo "prompt agnoster" >> ~/.zshrc
#echo "export JAVA_HOME=`/usr/libexec/java_home -v 1.8`" >> ~/.zshrc
#echo "export IDEA_JDK=$JAVA_HOME" >> ~/.zshrc
echo "export IDEA_JDK=\$JAVA_HOME" >> ~.zshrc
echo "export PG_HOME=\$(brew --prefix postgresql)" >> ~.zshrc
echo "export GRADLE_HOME=\$(brew --prefix gradle)/libexec" >> ~.zshrc
echo "export GOPATH=\$(brew --prefix go)" >> ~.zshrc
echo "alias updatedb=\"sudo /usr/libexec/locate.updatedb\"">> ~.zshrc
echo "export PATH=\$HOME/.jenv/bin/:\$PG_HOME/bin/:\$GOPATH/bin/:\$GRADLE_HOME/bin/:\$PATH">> ~.zshrc
echo "eval \"\$(jenv init -)\"" >> ~/.zshrc
# https://github.com/gcuisinier/jenv
jenv enable-plugin gradle
jenv enable-plugin maven
#
# Enable Gradle Daemon
#
touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment