Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!cornell!uw-beaver!ssc-vax!ray3rd
From: ray3rd@ssc-vax.UUCP
Newsgroups: comp.unix.wizards,comp.unix.questions
Subject: Re: The whole prompt string thing (was: PS1 and the bourne shell...)
Message-ID: <1570@ssc-vax.UUCP>
Date: Thu, 3-Dec-87 13:01:01 EST
Article-I.D.: ssc-vax.1570
Posted: Thu Dec  3 13:01:01 1987
Date-Received: Mon, 7-Dec-87 04:29:58 EST
References: <279@caus-dp.UUCP> <1311@puff.wisc.edu> <137@anumb.UUCP> <6773@brl-smoke.ARPA>
Organization: Boeing Aerospace Corp., Seattle WA
Lines: 26
Xref: utgpu comp.unix.wizards:5385 comp.unix.questions:4642
Summary: Here is a trick that REALLY works (you're not gonna like it!)

In article <6773@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes:
> In article <305@caus-dp.UUCP> marcos@caus-dp.UUCP (Marcos R. Della) writes:
> >... There are lots of interesting ideas and designs, but so far,
> >nothing is working on this little problem. Has anyone out there actually
> >done this and gotten it to work?

Ok, here is what I use to get a new prompt each time I 'cd'

(First of all, you MUST log into csh, I know, you want a sh answer)


         set prompt="`hostname` `tty` `pwd`> "
         alias cd \
          'cd \!$;set prompt="`hostname` `tty` `pwd`> "'


I realize that this doesn't satisfy the desire for a 'trick' in the
Bourne shell, but I'm getting dizzy reading all the requests, and
nothing shows up.  For what it's worth.....


-- 
Ray E. Saddler III       CAD Support and Administration |    __  __ __       __
Boeing Aerospace Company Ballistic Systems Division     |   / / / //   //| // 
P.O. Box 3999 M.S. 3R-05 Kent Space Center East         |  /-< / //-  // |// _
Seattle, Wa. 98124  USA  (206)657-2824 or (206)657-3369 | /__//_//__ //  //__/