I frequently edited the
.bashrc file to export new environment variables.
Rather than close the console and start a new one to refresh the env variables, is there a convenient way to refresh?
Within the same window, you can simply type
Alternatively, you can type
I am using an installer which is adding entry of environment variable in bash_profile file, when i am starting jetty server, it was unable to find that entry..when i run source ~/.bash_profile it rerlaods the bash profle and server starts succesfully without any issues..The problem is customer is not going to start a new session nor he is going to manually refresh the bash_profile.I tried to add the "source ~/.bash_profile" command inside a shell script and i called that shell script when i invoke the startup file of jetty server but it also doesn't work..Is there any other way we can reload the bash profile of current session?Any information you can provide me would be greatly appreciated.