添加了~/.bash_profile之后,~/.bashrc失效以及bash失去高亮的原因及解决方案
问题表现
添加~/.bash_profile
之后,bash失去高亮,~/.bashrc
中的逻辑不运行。
添加前↑
添加后↑
问题原因
在添加~/.bash_profile
之后,~/.profile
会被覆盖不再运行,而load bashrc的逻辑在~/.profile
中,导致~/.bashrc
也一并失效。
1 |
|
以上!まいど~
添加~/.bash_profile
之后,bash失去高亮,~/.bashrc
中的逻辑不运行。
添加前↑
添加后↑
在添加~/.bash_profile
之后,~/.profile
会被覆盖不再运行,而load bashrc的逻辑在~/.profile
中,导致~/.bashrc
也一并失效。
1 |
|