OK. Big time edit. Looked into it further.
~/.bashrc conditionally loads /etc/bashrc
Code:
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
Then, /etc/bashrc conditionally loads all the scripts in /etc/profile.d/.
Code:
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
For example, take a look at /etc/profile.d/which-2.sh:
Code:
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
Finally, re-adding what I had written before the first edits:
When I want to define aliases for my use, I don't usually touch any of these except /etc/profile and ~/.bashrc. If I want an alias available to all users, I stick it in /etc/profile. For aliases I want for just one user, I use ~/.bashrc.