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.
精彩评论