From owner-freebsd-questions Tue Mar 21 5:18: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 843AF37B515 for ; Tue, 21 Mar 2000 05:17:56 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (ppp2.patr.hellasnet.gr [212.54.197.17]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id PAA08911; Tue, 21 Mar 2000 15:16:54 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id EAA17744; Tue, 21 Mar 2000 04:18:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 21 Mar 2000 04:18:23 +0200 From: Giorgos Keramidas To: Chip Cc: Boris Stoev , freebsd-questions@FreeBSD.ORG Subject: Re: Directory path Message-ID: <20000321041823.B17616@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <20000320163853.B81662@hades.hell.gr> <00032017042101.05398@chip.homenet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <00032017042101.05398@chip.homenet>; from chip@wiegand.org on Mon, Mar 20, 2000 at 05:03:39PM -0800 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 20, 2000 at 05:03:39PM -0800, Chip wrote: >On Mon, 20 Mar 2000, Giorgos Keramidas wrote: >>On Mon, Mar 20, 2000 at 12:55:09PM +0200, Boris Stoev wrote: >>> >>>Maybe my question is stupid but... >>>How can I make bash prompt to display my current directory path... >>>I use FreeBSD 3.4 ... >> What you want is \w, as shown in: >> >> export PS1='[\w] ' ... >> or some more funky variation of this :) > >Doesn't the comand pwd show the currant path? >It does for me. It does for me too. But having your bash fork and exec() a subshell to execute `pwd` and capture the same output that \w could give, just to display what bash can do with \w is a bit of an overkill, don't you think? - Giorgos Keramidas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message