From owner-freebsd-questions Mon Aug 3 11:17:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10705 for freebsd-questions-outgoing; Mon, 3 Aug 1998 11:17:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10636 for ; Mon, 3 Aug 1998 11:17:38 -0700 (PDT) (envelope-from patl@phoenix.volant.org) From: patl@phoenix.volant.org Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 0z3PAj-0005Cg-00; Mon, 3 Aug 1998 11:17:25 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id LAA23842; Mon, 3 Aug 1998 11:17:21 -0700 Date: Mon, 3 Aug 1998 11:17:21 -0700 (PDT) Reply-To: patl@phoenix.volant.org Subject: Re: BASH prompt question To: Sascha Schumann cc: William Woods , "freebsd-questions@FreeBSD.ORG" In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sun, 2 Aug 1998, William Woods wrote: > > > I would like to make my bash prompt show a little more info, like what > > dir the user is in. How would I do this? > > Edit /etc/profile and insert at the end: > > ... Aaaaccckkkk!!! NO, NO, NO, this is the sort of -personal preference- customization that should NOT be placed in system-wide config files. Even if you are (currently) the only user of that machine. Let's not encourage any bad habits. > Then you can put all your personal stuff (in case your system is used by > more than one) in your ~/.bashrc: > > PS1='\u@\h:`pwd -P` $ ' > export PS1 Yep, this is the way to do it. > For more info, see man bash ;) Even if you have enough info for now, go ahead and read through the bash docs. You'll probably find all sorts of interesting and useful info there. And even if you don't use it right away, it should help you know where to look and what to look for later. -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message