If I make changes to .bashrc, how do I reload it without logging out and back in?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
|
You just have to enter the command:
or you can use the shorter version of the command:
|
|||||||||||||||||||||
|
|
or you could use;
does the same thing. (and easier to remember, at least for me) exec command replaces the shell with given program, in our example, it replaces our shell with bash (with the updated configuration files) |
|||||||||||||||||||||
|
|
To complement and contrast the two most popular answers, Both solutions effectively reload
Depending on your needs, one or the other approach may be preferred. [1] |
|||||||||||||||||||||
|
|
You can try do this:
|
|||||||||||||||||||||
|
|
Depending on your environment, just typing
may also work. |
|||||||||||||
|
|
With this, you won't even have to type "source ~/.bashrc": Include your bashrc file:
Every time you want to edit your bashrc, just run the alias "rc" |
||||
|
|
TL;DR
TMI
Alternative
|
|||||
|
|
type:
|
|||||
|
|
i use the following command on msysgit
shorter version of
|
|||||||||||||||||||||
|
|
This will also work..
|
|||||||||
|
protected by Aniket Thakur Aug 1 '15 at 4:58
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?