OSX Environment
brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
git
brew install git
oh-my-zsh
auto install
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
manually operated
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
plugins=(git osx ruby autojump)
export JAVA8_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home"
export JAVA7_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home"
alias ll="ls -al"
alias usb="cd /Volumes"
alias rf="rm -rf"
alias gall="git add \."
alias gpo="git push origin"
alias gpom="git push origin master"
alias gcmt="git commit -m"
alias aj="autojump"
alias jdk7="export JAVA_HOME=$JAVA7_HOME"
alias jdk8="export JAVA_HOME=$JAVA8_HOME"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
use it at new terminal window
autojump
brew install autojump
vim ~/.zshrc
plugins=(git osx ruby autojump)
Ubuntu
软件源修改
把http://archive.ubuntu.com修改为main Sources
sudo vi /etc/apt/sources.list
sudo apt-get update
开发环境
Git
sudo apt-get install git-core
This work is licensed under a CC A-S 4.0 International License.