When I define a new alias in .bash_aliases
file or a new function in .bashrc
file, is there some refresh command to be able immediately use the new aliases or functions without closing the terminal (in my case xfce4-terminal with a few tabs open, many files open and in the middle of the work)?
Bash – How to Refresh Aliases and Functions After Defining New Ones
aliasbashbashrcfunctionterminal
Best Answer
Sourcing the changed file will provide access to the newly written alias or function in the current terminal, for example:
An alternative syntax:
Note that if you have many instances of bash running in your terminal (you mentionned multiple tabs), you will have to run this in every instance.