Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 1998 20:28:33 +0200 (MET DST)
From:      Sascha Schumann <sas@schell.de>
To:        patl@phoenix.volant.org
Cc:        William Woods <wwoods@cybcon.com>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: BASH prompt question
Message-ID:  <Pine.LNX.3.96.980803202247.29560A-100000@www.schell.de>
In-Reply-To: <ML-3.3.902168241.7515.patl@asimov>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.980803202247.29560A-100000>