Hi Mario,
You can create you own $(HOME)/.rootrc (e.g by copying
$(ROOTSYS)/etc/system.rootrc)
And change the following lines:
# Rint (interactive ROOT executable) specific alias, logon and logoff macros.
Rint.Load: rootalias.C Rint.Logon: rootlogon.C Rint.Logoff: rootlogoff.C
By something like this:
# Rint (interactive ROOT executable) specific alias, logon and logoff macros.
Rint.Load: rootalias.C Rint.Logon: $(HOME)/rootlogon.C Rint.Logoff: rootlogoff.C
Cheers,
Bertrand.
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On
Behalf Of Mario Kadastik
Sent: Monday, August 11, 2008 2:46 PM
To: roottalk (Mailing list discussing all aspects of the ROOT system)
Subject: [ROOT] rootlogon.C
Hello,
how can I make the ~/rootlogon.C to be loaded every time I start root independent on the path I'm in myself?
As an example:
pb-d-128-141-89-172:~ mario$ pwd
/Users/mario
pb-d-128-141-89-172:~ mario$ root -l
Loading TDR style
root [0] .q
pb-d-128-141-89-172:~ mario$ cd Pictures/ pb-d-128-141-89-172:Pictures
mario$ root -l root [0] .q
Notice the "Loading TDR style" which is shown when I start ROOT in my home directory and is not in any other. I'd like it to be loaded always.
Thanks,
Mario
This archive was generated by hypermail 2.2.0 : Tue Aug 12 2008 - 05:50:02 CEST