mac 环境变量

文件:~/.profile
环境变量:
MAVEN_HOME=[maven路径]
PATH=$MAVEN_HOME/bin:$PATH


当你的home下面有.bash_profile或者.bash_login的时候,会忽略调.profile. 
稍微调查了一下,做个笔记 
主要有一下几种方式 
/etc/profile  
/etc/paths
~/.bash_profile  
~/.bash_login  
~/.profile  
~/.bashrc  
~/.bash_logout 
 
/etc/profile 
登录的时候读入,默认的设定文件. 
~/.bash_profile 
登录之后在/etc/profile载入之后载入,十分重要的配置文件 
~/.bash_login 
登录之后如果~/.bash_profile不存在的话,载入这个文件 
~/.profile 
登录之后~/.bash_login不存在的话,才载入这个文件 
~/.bashrc 
bash shell打开的时候载入 
etc下的配置是针对系统,~下的主要是针对用户 

你可能感兴趣的:(maven)