Date: Mon, 3 Aug 1998 21:44:14 +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.980803214242.986B-100000@www.schell.de> In-Reply-To: <ML-3.3.902170339.1051.patl@asimov>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 Aug 1998 patl@phoenix.volant.org 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.
>
> /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.)
Thats exactly what I said. Read (and think) before you post ...
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.980803214242.986B-100000>
