Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!ucbarpa.Berkeley.EDU!jordan From: jordan@ucbarpa.Berkeley.EDU (Jordan Hayes) Newsgroups: net.unix-wizards Subject: Re: .cshrc efficiency note Message-ID: <13635@ucbvax.BERKELEY.EDU> Date: Mon, 5-May-86 00:53:14 EDT Article-I.D.: ucbvax.13635 Posted: Mon May 5 00:53:14 1986 Date-Received: Tue, 6-May-86 05:30:57 EDT References: <485@brl-smoke.ARPA> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: ucbvax!jordan (Jordan Hayes) Organization: University of California, Berkeley Lines: 26 Mike Muuss writes: >If your .cshrc contains a like like: > >set prompt=\!\ "`hostname`>"\ > >then this will cause the /bin/hostname program to be run FOR EVERY >PROMPT that the CSH prints out! Unless lastcomm is lying, that doesn't happen for me. This line is best put into a small if like my .cshrc ----- set path=( ~/bin /etc /usr/{local,new,lib,ucb,bin,hosts,public} /bin . ) if ($?prompt) then set filec history=200 notify prompt="`hostname`<\!> " source ~/.aliases endif ----- So that those things that only need to be done once get done when you start up the shell. Also, it doesn't waste all kinds of time when firing up an rsh ... /jordan