The file you want to edit is $HOME/.rootlogon.C
, .rootrc
is for other configurations. Have a look at the default one that comes from ROOT in $ROOTSYS/etc/system.rootrc
.
https://root-forum.cern.ch/t/how-to-change-default-rootlogon-c-file/23883/3