From owner-freebsd-questions Mon Mar 20 12:18:17 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 8986937C160 for ; Mon, 20 Mar 2000 12:18:02 -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 WAA20881; Mon, 20 Mar 2000 22:16:49 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id QAA82245; Mon, 20 Mar 2000 16:38:54 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 20 Mar 2000 16:38:53 +0200 From: Giorgos Keramidas To: Boris Stoev Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Directory path Message-ID: <20000320163853.B81662@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <38D6038C.5B9FBC5F@uni-svishtov.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38D6038C.5B9FBC5F@uni-svishtov.bg>; from darko@uni-svishtov.bg on Mon, Mar 20, 2000 at 12:55:09PM +0200 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 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