对于登录Shell, 读取顺序为:
/etc/profile
~/.bash_profile
~/.bashrc
/etc/bashrc
/etc/profile.d/*.sh
对于非登录Shell, 读取顺序为:
~/.bashrc
/etc/bashrc
/etc/profile.d/*.sh
对于登录Shell, 读取顺序为:
/etc/profile
~/.bash_profile
~/.bashrc
/etc/bashrc
/etc/profile.d/*.sh
对于非登录Shell, 读取顺序为:
~/.bashrc
/etc/bashrc
/etc/profile.d/*.sh