小编Sam*_*elN的帖子

.bashrc 有利于 .bash_profile 的任何场合?

我明白之间的差别.bashrc.bash_profile(或.bash_login~/.profile此有关),但没有任何特别的理由选择.bashrc.bash_profile对bash shell的配置呢?

据我了解,.bashrc每次打开新的 bash 窗口时,都会重新加载诸如终端颜色、环境变量等配置。.bash_profile只会在登录时加载一次,我认为这应该足够了。那为什么要放东西.bashrc呢?

我能想到的唯一原因是避免为了加载配置而必须退出系统。

除了纯粹的传统原因之外,我找不到答案。

shell bash bashrc

6
推荐指数
1
解决办法
238
查看次数

标签 统计

bash ×1

bashrc ×1

shell ×1