(no subject)

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Aug 04 2000 - 16:42:23 MEST


Hi Claire, 

On Fri, 4 Aug 2000 11:57:23 +0000 (   ) Claire Gwenlan <cg@hep.ucl.ac.uk> wrote:
> How do you get root to read your rootlogon.C file automatically as you
> open up root, rather than having to type .x rootlogon everytime?

What I usually do, is to have the following lines in my
${HOME}/.rootrc:

	Rint.Load:               $(HOME)/.rootalias.C
	Rint.Logon:              $(HOME)/.rootlogon.C
	Rint.Logoff:             $(HOME)/.rootlogout.C
	Rint.History:            $(HOME)/.root.hist

Then if I in some directory <dir> want differnet behaviour, I put in
<dir>/.rootrc, the lines 

	Rint.Load:               .rootalias.C
	Rint.Logon:              .rootlogon.C
	Rint.Logoff:             .rootlogout.C
	Rint.History:            .root.hist

(the '.' is so that I don't see those files every time I do 'ls'). 

Incidently, this type of questions is exactly why there should be a
ROOT User Guide. I know some people are working on it, and doing a
damn good job too (cheers Suzanne). 

Christian  -----------------------------------------------------------
Holm Christensen                             Phone:  (+45) 35 35 96 91 
  Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
  DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
  Denmark                                    Email:       cholm@nbi.dk



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET