Just give the source command : source .bash_profile
man source to find out more
On Wed, 06 Apr 2005 Richard Chang wrote :
Hi All, New to shell programming, Just want to learn more and more aout it. I am trying to learn more and more daily but stumble upon certain things for which I really dont have any answer.
Learning about .bash_profiles now. I would like to know how to apply environment variables edited or typed into the .bash_profile script without logging out and relogging in. Suppose I implement certain changes to the .bash_profile of a user( thru which I have currently logged in) and want to implement the changes without relogging in. How do we do it ? esp if we login thru X and edit it under x-term.
Thanks in advance for any help.
Richard
Thanks Raseel Bhagat