Swa*_*der 11 command-line bash .profile user-profile bashrc
xsession 中没有错误,而且我没有 .bash_login 或 .bash_profile 文件,所以我 100% 确定它们都没有加载,因此取消了 .profile 加载。
当我将 .profile 重命名为 .bash_profile 并打开一个新的终端窗口时,它仍然没有加载。当我通过“. ~/.profile”手动加载文件时,文件中的所有内容(别名和 PATH 导出)都有效,但不会自动加载。