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: mortimer@physics.uq.oz.au (Ian Mortimer) Subject: Re: Need to display $PWD in prompt using /bin/ksh Date: 1996/12/02 Message-ID: <57tlut$3oc$1@nargun.cc.uq.oz.au>#1/1 X-Deja-AN: 201805092 references: organization: University of Queensland newsgroups: comp.unix.osf.osf1 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