mac bashrc

mac will execute .bash_profile ,but not do .bashrc

$ vi .bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

$ vi .bashrc
alias ll='ls -alG'

export JAVA_HOME=$(/usr/libexec/java_home)
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib

export POSTGRESQL_HOME=/Applications/Postgres.app/Contents/Versions/latest
export GRADLE_HOME=/Users/momo/Library/gradle
export TOMCAT_HOME=/Users/momo/Library/tomcat
export WILDFLY_HOME=/Users/momo/Library/wildfly
export MAVEN_HOME=/Users/momo/Library/maven

export PATH=$PATH:$JAVA_HOME/bin:$POSTGRESQL_HOME/bin:$GRADLE_HOME/bin:$TOMCAT_HOME/bin:$WILDFLY_HOME/bin:$MAVEN_HOME/bin

你可能感兴趣的:(mac)