Date: Sun, 17 May 1998 12:16:02 +0930 From: Greg Lehey <grog@lemis.com> To: Brendan Kosowski <brendan@bmkind.lnk.telstra.net>, questions@FreeBSD.ORG Subject: Re: /bin/sh question Message-ID: <19980517121602.K370@freebie.lemis.com> In-Reply-To: <Pine.LNX.3.96.980517122402.1225A-100000@bmkind.lnk.telstra.net>; from Brendan Kosowski on Sun, May 17, 1998 at 12:27:13PM -1000 References: <Pine.LNX.3.96.980517122402.1225A-100000@bmkind.lnk.telstra.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 May 1998 at 12:27:13 -1000, Brendan Kosowski wrote:
>
> How do I make /bin/sh display the current working directory before the $
> prompt.
Well, I don't know why you're using /bin/sh, but putting this in your
.profile should do the trick:
cd () { command cd $1; PS1="`pwd` -> "; }
Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980517121602.K370>
