rootlogon.C for newbie

Can anyone help instruct me on how to setup a rootlogon.C file
I know I have to set up some .rootrc file but I can’t find much clear documentation on how.

I just want to run the following script when root is started

{
printf(“Styles set by rootlogin.C \n”);
gROOT->SetStyle(“Plain”);
gStyle->SetPadTickX(1);
gStyle->SetPadTickY(1);

gStyle->SetTitleSize(0.05593);
gStyle->SetTitleXOffset(0.95);
gStyle->SetTitleXSize(0.08);
gStyle->SetTitleFont(132,“xyz”);
gStyle->SetLabelFont(132,“xyz”);

gStyle->SetTitleYOffset(1.0);
gStyle->SetTitleYSize(0.06593);
gStyle->SetTitleXSize(0.06593);

gStyle->SetTitleBorderSize(0);
gStyle->SetNdivisions(10,“xyz”);
gStyle->SetLabelSize(0.035,“xyz”);
gStyle->SetOptStat(000000);
gStyle->SetPadBottomMargin(0.15);
gStyle->SetPadLeftMargin(0.15);

}

I did it that way: on lxplus in my home directory (~) I created file .rootlogon.C (note the dot!) and copied all the necessary code there. So I think you have to do the same. Good luck!