Beta 42

Research and Development

Menu

Reload bash Profile

Bash shell uses a startup file to set up the environment. The file determines certain Bash shell configurations for the shell itself and system users.

To complement and contrast the two most popular answers, . ~/.bashrc and exec bash. Both solutions effectively reload ~/.bashrc, but there are differences:

In other words, any ad-hoc changes to the current shell in terms of shell variables, shell functions, shell options, command history are lost. Depending on your needs, one or the other approach may be preferred.