Bourne Shell Question?

Eduardo Krell ekrell at hector.UUCP
Fri Feb 3 00:07:27 AEST 1989


In article <9562 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn <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 at ulysses.att.com



More information about the Comp.unix.questions mailing list