I have put an echo in three profile scripts that shows the file name so that I can see the order they run.
When I log in I see.
/etc/profile
/etc/profile.d/color-ls
~/.bashrc
/etc/bashrc
$ alias ls
alias ls='ls --ignore=*.pyc --color'
Yet when I start a screen session I see
~/.bashrc
/etc/bashrc
/etc/profile.d/color-ls
$ alias ls
alias ls='ls --color=tty'
The alias I've set up in ~/.bashrc is being overwritten by color-ls but only within screen, is there any round this annoying behaviour?