[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to add dir to path



Hi Wayne,

On 8/8/07, Wayne Topa <linuxone@intergate.com> wrote:

Any changes made to .bash_profile or .bashrc require a restart of that
file.

If you have at the end of the .bash_profile, the command
. .bashrc

Then after editing either one, you do
. .bash_profile  ( which is the same as logging out & back in)
the new commands you entered will then work. Musch faster then a
logout/login.


Executing . .bash_profile makes no difference. The new dir won't show
up in another session, only if I open a new  bash window, but never in
a new session.

The only thing concerning .bashrc in .bash_profile are these lines:

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi


But it actually is not much of a problem any more, coz I already found
some solution. Nevertheless thanks for telling how to restart .bashrc &
.bash_profile. I didn't know this.

Greetings, Manon.


Reply to: