From owner-freebsd-questions Mon Aug 3 11:29:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12090 for freebsd-questions-outgoing; Mon, 3 Aug 1998 11:29:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from www.schell.de ([195.20.238.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12082 for ; Mon, 3 Aug 1998 11:29:01 -0700 (PDT) (envelope-from sas@schell.de) Received: from localhost (sas@localhost [127.0.0.1]) by www.schell.de (8.9.0/8.9.0) with SMTP id UAA30940; Mon, 3 Aug 1998 20:28:34 +0200 Date: Mon, 3 Aug 1998 20:28:33 +0200 (MET DST) From: Sascha Schumann To: patl@phoenix.volant.org cc: William Woods , "freebsd-questions@FreeBSD.ORG" Subject: Re: BASH prompt question 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 Mon, 3 Aug 1998 patl@phoenix.volant.org wrote: > > 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. Huh? If one enables per-user settings I wouldn't consider that bad. > > > > 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. If I may correct myself here: PS1='\u@\h:`pwd -P` \$ ' \$ will be replaced with uid==0 ? '#' : '$' Greetings, Sascha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message