From owner-freebsd-questions Mon Mar 20 17: 3:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (pop3.islandtransit.org [208.240.196.29]) by hub.freebsd.org (Postfix) with ESMTP id D66FA37BC18 for ; Mon, 20 Mar 2000 17:03:21 -0800 (PST) (envelope-from chip@wiegand.org) Received: from chip.homenet [208.194.173.26] by pioneernet.net (SMTPD32-6.00) id AAFA63B001A6; Mon, 20 Mar 2000 17:06:02 -0800 From: Chip To: keramida@ceid.upatras.gr, Giorgos Keramidas , Boris Stoev Subject: Re: Directory path Date: Mon, 20 Mar 2000 17:03:39 -0800 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain Cc: freebsd-questions@FreeBSD.ORG References: <20000320163853.B81662@hades.hell.gr> MIME-Version: 1.0 Message-Id: <00032017042101.05398@chip.homenet> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > Although this is really a bash-specific question, and you would usually > have more chances of getting an answer from a mailing list dedicated to > bash... well, there are a few 'escapes' for PS1 listed in info '(bash)'. > > What you want is \w, as shown in: > > export PS1='[\w] ' > > Don't be fooled by the [..] brackets. They're not necessary; they just > make the directory more easy to read among the rest of your prompt. > What I customarily use on a lot of systems is: > > export PS1='\h!\u:\w\$ ' > > or some more funky variation of this :) > > - Giorgos Keramidas > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Doesn't the comand pwd show the currant path? It does for me. Chip www.wiegand.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message