From owner-freebsd-questions Tue Mar 21 5:22:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cliff.i-plus.net (cliff.i-plus.net [209.100.20.42]) by hub.freebsd.org (Postfix) with ESMTP id B212A37B6B1 for ; Tue, 21 Mar 2000 05:22:11 -0800 (PST) (envelope-from troy@picus.com) Received: from abyss (dhcp-05.dashit.net [209.100.22.254]) by cliff.i-plus.net (8.9.3/8.9.3) with SMTP id IAA40884; Tue, 21 Mar 2000 08:20:49 -0500 (EST) From: "Troy Settle" To: "Chip" , , "Giorgos Keramidas" , "Boris Stoev" Cc: Subject: RE: Directory path Date: Tue, 21 Mar 2000 08:15:40 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <00032017042101.05398@chip.homenet> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ** > > Maybe my question is stupid but... ** > > How can I make bash prompt to display my current directory path... ** > > I use FreeBSD 3.4 ** > ** ** Doesn't the comand pwd show the currant path? ** It does for me. Yes... that works fine. But, some of us like to see that information at all times. Myself, for example, often have many sessions open, and find it very easy to get lost. I've used the following for my prompt for about 2 years now: 5 [08:13:21] st@buggy:~ $ cd /etc 6 [08:13:45] st@buggy:/etc $ grep PS1 profile PS1="\n\# [\t] \u@\h:\w\n\\$ " ; export PS1 You can see the results. My prompt answers all the basic questions: who, what, where, and when. The only thing missing, is a how and a why :) -Troy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message