The
.bashrc file is a bash script
controlled by the user that is run every time a bash shell (e.g., "terminal window") is started. Nothing in that script is intended to be run for every system user.
If you want something to be executed by
everyone, put the commands in
/etc/bashrc instead of the
user's ~/.bashrc file. Note that the
/etc/bashrc program can easily contain user-specific commands:
Code:
...
if [ "$USER" = "user_name" ]
then
...
fi
and so on.