Mur*_*iar 5 linux unix shell bash
以前,当第一次设置 *NIX 环境时,我会将我的所有 shell 自定义放入 .bashrc 中,并使用以下 .bash_profile:
if [ -f $HOME/.bashrc ]; then
. $HOME/.bashrc
fi
Run Code Online (Sandbox Code Playgroud)
但是,根据这个答案及其相关评论,我最近将我的 PATH 重新定义移到了 .bash_profile 中。
您认为应该将哪些类型的命令放入 .profile、.bash_profile、.bashrc(以及任何其他点文件)中,为什么?