When should I use each of the two .bashrc files to set my aliases, prompt, etc?
|
feedback
|
|
| |||||||||||
feedback
|
|
For your personal preferences and personal scripts or bash functions you should use .bashrc ( aliases, Added functions to bash ... ) The moment that you want to share something with all users ( or most of users ) or for things of general use ( Path for shared executables , path for documentation ...) put it in /etc/bash.bashrc I said most of users because even let's say you specify a script greetings.sh which prints | |||
|
feedback
|
|
Neither /etc/bash.bashrc nor /etc/bashrc are sourced by BASH, unless sourced from another file, such as .profile, .bash_profile, or .bashrc inside user $HOME | |||
|
feedback
|