How to use a different .bashrc

I have a shared .bashrc in the / home / folder. But I have another .basrch (.bashrc1) (I have a lot of aliases). I cannot copy content from one to another. So. I want to know if it is possible to use the default .bashrc1 or if there is an additional command to execute the aliases that are in .bashrc1

thank

+3


source to share


1 answer


B .bashrc

, put

source /path/to/.bashrc1

      

To force bash to use a different .bashrc

(bad practice)



mv ~/.bashrc ~/Bob/
bash --rcfile ~/Bob/.bashrc

      

For example, if you are using GNOME, add a custom keyboard shortcut with the above command.

+4


source







All Articles