📅 2013-Jan-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ bash, bashrc, source ⬩ 📚 Archive
If you have made some changes to your bashrc file, how do you update your current bash shell without exiting it?
One solution is to ask bash to read and execute your bashrc file, thus updating itself from the changed commands and settings in it. This can be done using the source built-in command of bash.
For example, to update my current shell with my changed .bashrc:
$ source ~/.bashrc
Tried with: bash 4.2.24 and Ubuntu 12.04.1 LTS