From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1d3d704021ddfe52 X-Google-Attributes: gidfee84,public From: system PRIVILEGED account Subject: Re: Need to display $PWD in prompt using /bin/ksh Date: 1996/12/07 Message-ID: <58adac$a31@news.ecn.bgu.edu>#1/1 X-Deja-AN: 202768995 references: <57tlut$3oc$1@nargun.cc.uq.oz.au> content-type: text/plain; charset=us-ascii organization: Educational Computing Network x-url: news:57tlut$3oc$1@nargun.cc.uq.oz.au mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.12I (X11; I; OSF1 V4.0 alpha) mortimer@physics.uq.oz.au (Ian Mortimer) wrote: >clos@ivory.trentu.ca wrote: > > >> We are using Korn shell (/bin/ksh) and I would like to have the shell display my >> present working directory ($PWD) in my command prompt evertime I "cd" to a >> different directory. > >I put this in my .profile: > > PS1='${PWD#$HOME/}> ' > >This gives me a prompt showing the current directory in relation >to my home directory. > >Ian It does not work !!!!!!!!