ggh$ cat .bash_profile
alias ls=‘ls -G‘
alias ll=‘ls -l‘
alias grep=‘grep --color‘
#以下设置jdk
#设置 JDK 7
export JAVA_7_HOME=`/usr/libexec/java_home -v 1.7`
#设置 JDK 8
export JAVA_8_HOME=`/usr/libexec/java_home -v 1.8`
#默认JDK 8
export JAVA_HOME=$JAVA_8_HOME
#alias命令动态切换JDK版本
alias jdk7="export JAVA_HOME=$JAVA_7_HOME"
alias jdk8="export JAVA_HOME=$JAVA_8_HOME"
export MAVEN_HOME=/Users/ggh/tool/apache-maven-3.5.0
export PATH=$PATH:$MAVEN_HOME/bin
# mysql
alias mysql=‘/usr/local/mysql/bin/mysql‘
alias mysqladmin=‘/usr/local/mysql/bin/mysqladmin‘
alias ll=‘ls -l‘
alias grep=‘grep --color‘
#以下设置jdk
#设置 JDK 7
export JAVA_7_HOME=`/usr/libexec/java_home -v 1.7`
#设置 JDK 8
export JAVA_8_HOME=`/usr/libexec/java_home -v 1.8`
#默认JDK 8
export JAVA_HOME=$JAVA_8_HOME
#alias命令动态切换JDK版本
alias jdk7="export JAVA_HOME=$JAVA_7_HOME"
alias jdk8="export JAVA_HOME=$JAVA_8_HOME"
export MAVEN_HOME=/Users/ggh/tool/apache-maven-3.5.0
export PATH=$PATH:$MAVEN_HOME/bin
# mysql
alias mysql=‘/usr/local/mysql/bin/mysql‘
alias mysqladmin=‘/usr/local/mysql/bin/mysqladmin‘