linux - How to use a different .bashrc -


i got common .bashrc in /home/ folder. have .basrch (.bashrc1) (i have lot of aliases) cannot copy content 1 another. so. want know if there possibility use .bashrc1 default or if there additional command execute aliases .bashrc1

thanks

in .bashrc, put

source /path/to/.bashrc1 

to force bash use different .bashrc (bad practice)

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

for example, if use gnome, add custom keyboard shortcut above command.


Comments