Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.unix.questions Subject: Re: Bourne Shell Question? Message-ID: <11173@ulysses.homer.nj.att.com> Date: 2 Feb 89 14:07:27 GMT References: <8517@dasys1.UUCP> <9562@smoke.BRL.MIL> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector.UUCP (Eduardo Krell) Organization: AT&T Bell Laboratories Lines: 13 In article <9562@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn ) writes: >I think >for the Korn shell one would use "alias" in a manner similar to your >Cshell example. You don't need an alias. All you need is to put $PWD in your PS1 prompt. I like PS1='(${PWD#$HOME/}) ' which displays your working directory relative to your home directory. This is from the ksh book. Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {att,decvax,ucbvax}!ulysses!ekrell Internet: ekrell@ulysses.att.com