From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from inet-gw-1.pa.dec.com ([16.1.0.22]) by archone.tamu.edu with SMTP id <22533>; Tue, 27 Aug 1991 05:17:37 -0500 Received: by inet-gw-1.pa.dec.com; id AA23789; Tue, 27 Aug 91 03:17:00 -0700 Received: by prl313.prl.dec.com (5.61++prl/27-May-90); id AA19464; Tue, 27 Aug 91 12:16:53 +0200 (MET) From: Boyd Roberts Date: Tue, 27 Aug 1991 05:06:49 -0500 To: rc@archone.tamu.edu Subject: Re: rc + Xwindows In-Reply-To: <91Aug26.222252cdt.22533@archone.tamu.edu> Message-Id: <9108271206.19431.out.babur@prl.dec.com> X-Face: #"03$i1:"_[Hbg~GCPw}`+d4_R`}RaDfYixB`n-mCB0E8m#tNd>uyd[d)`nEix7Bys(:o#o2y7$(=,&BTXdH7)Hm5jP}H5:y]}0GT4?uTT(Y0(Cu7tWBXj\|q\@jZ8 Y_qn8)NV0*$uO][i7p"K2>Kg( Byron> What do I do? I run rc -l in all my windows. Do I notice the slowdown? No way! Let's see.... I have a 181 line system .rcrc (it's pretty hideous) and a 66 line personal one and both get sourced in every xterm I invoke: prl313 ; sed 2q .rcrc . /proj/ultrix/lib/system.rcrc prl313 ; wc /proj/ultrix/lib/system.rcrc 181 468 3674 /proj/ultrix/lib/system.rcrc prl313 ; wc .rcrc 66 143 1051 .rcrc I have about 40 windows open now, on about 6 machines, but most of them are on my own machine. Do I see a slowdown? prl313 ; time rc -l /dev/null 0.9 real 0.0 user 0.4 sys The bulk of the time I'm waiting is for X to _give me that window_! On the question of a root prompt, it's just: if (test -w /) { pc='#' } else { pc=';' } prompt=($MACHINE' '^$pc' ' ' ') End of story. It's dead cheap. So cheap, I reckon it's another argument for rcmain.