开发者

ubuntu doesn't seem to be picking up .bash_profile

I added some settings to .bash_profile and closing/opening terminal doesn't seem to have the path's I added there i.e. doing echo $BLAH results in a empty line.

(running the latest version of ubuntu)

do I use 开发者_Go百科.profile instead?


You might have to add that in the .profile file in your home directory instead of .bash_profile

Once you do that, you will have to either log in again or do this in your terminal:

$> source .profile


~/.bash_profile is only sourced on login shells. You may need to alter your ~/.bashrc to get your configuration sourced on other interactive shells.

See the bash man page for more information.


If .profile and .bash_profile coexists under Ubuntu (at least 10.10 which I am using), .profile will be used, and all the settings in .bash_profile are abandoned.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜