Tuesday, 13 December 2016

bash - How to reload .bash_profile from the command line?



How can I reload .bash_profile from the command line?
I can get the shell to recognize changes to .bash_profile by exiting and logging back in but I would like to be able to do it on demand.


Answer



Simply type source ~/.bash_profile



Alternatively, if you like saving keystrokes you can type . ~/.bash_profile


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...