我向 .bash_profile 添加了一些设置,并且关闭/打开终端似乎没有我在那里添加的路径,即执行 echo $BLAH
结果为空行。
(运行最新版本的ubuntu)
我应该改用 .profile 吗?
最佳答案
您可能必须将其添加到主目录的 .profile 文件中,而不是 .bash_profile
完成此操作后,您将不得不再次登录或在终端中执行此操作:
$> source .profile
关于ubuntu 似乎没有拿起 .bash_profile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3103246/