【MAC】source ~/.bash_profile只在当前shell下生效

引言,mac中有许多不同的shell种类,一般linux中使用的是bash,而我手上这台macbook pro用的是zsh,而在使用bash终端的时候,mac加载环境变量的顺序是: /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc 前两个是系统级别的,当开机时会自动加载,后面 3 个是当前用户级别的
相关文章
相关标签/搜索