mac环境变量配置文件加载优先级

加载顺序为:shell /etc/profile    /etc/paths    ~/.bash_profile    ~/.bash_login    ~/.profile    ~/.bashrcbash 固然/etc/profile和/etc/paths是系统级别的,系统启动就会加载,后面几个是当前用户级的环境变量。后面3个按照从前日后的顺序读取,若是~/.bash_profile文件存在
相关文章
相关标签/搜索