Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 08:25:20 -0600
From:      "Mike Meyer" <mwm-dated-1015338321.888ed1@mired.org>
To:        Scott Mitchell <scott.mitchell@mail.com>
Cc:        questions@freebsd.org
Subject:   Re: System-wide environment variables
Message-ID:  <15486.15824.656491.941347@guru.mired.org>
In-Reply-To: <91521978@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Mitchell <scott.mitchell@mail.com> types:
> On Wed, Feb 27, 2002 at 11:31:06PM +0100, Rickard Borgm=E4ster wrote:=

> > How do I put this into /etc/login.conf, "with the 'setenv' cap"?
> > I want this to apply all users, no matter wether they login to
> > shell or by gdm.
> =09:setenv=3DPS1=3D$'[ \\u@\\h:\\w ] \\$ ':\
>=20

Just for the record, and since finding it was a pain, the ":" in the
middle of that strings has to be encoded as \c. Otherwise you'll get
parsing error because the things starting \\w isn't a valid
capability.

=09<mike
--
Mike Meyer <mwm@mired.org>=09=09=09http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more inform=
ation.

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?15486.15824.656491.941347>