Kai Lien wrote:
>
> You do not have to log out to re-parse the .bashrc or .bash_profile. All
> you need is to re-source them after the chanages. Actually, in Red Hat,
> you just need to source the .bash_profile since the latter script runs
> .bashrc also.
>
> Example:
> #in your home dir
>
> vi .bash_profile
>
> #save the changes such as adding new aliases
>
> source .bash_profile
>
> #there is no need to log-out
>
You do have to be careful with what you do in your ~/.bash_profile
when re-sourcing...
As a minor example:
PATH=$PATH:/some/other/dir
can result in duplicate entries in the $PATH.
-- "We choose to go to the moon, and do the other things... Not because they are easy, but because they are hard." -JFK
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:22:35 EDT