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

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> > > > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ML-3.3.902170339.1051.patl>