From owner-freebsd-questions Mon Aug 3 11:52:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA15337 for freebsd-questions-outgoing; Mon, 3 Aug 1998 11:52:41 -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 LAA15325 for ; Mon, 3 Aug 1998 11:52:31 -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 0z3PiY-0005Um-00; Mon, 3 Aug 1998 11:52:22 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id LAA23853; Mon, 3 Aug 1998 11:52:19 -0700 Date: Mon, 3 Aug 1998 11:52:19 -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 > > > > > > 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. > > Huh? If one enables per-user settings I wouldn't consider that bad. /etc/profile is system-wide. Everybody who uses a Bourne-type shell will be affected by it's contents. Non-standard prompts; particularly ones that may be quite lengthy, are a personal preference. They should be kept in personal config files. For Bash, that's ~/.bashrc and/or ~/.bash_profile. (Depending on whether you want it executed every time a shell starts; or only for login shells. 'Man bash' for details.) -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message