From owner-freebsd-questions Wed Feb 27 19:20:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 6916937B405 for ; Wed, 27 Feb 2002 19:20:00 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g1S3Gs846367; Wed, 27 Feb 2002 22:16:54 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: System-wide environment variables From: Joe Clarke To: Mike Meyer Cc: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= , questions@FreeBSD.ORG In-Reply-To: <15485.40498.537327.335024@guru.mired.org> References: <15485.40498.537327.335024@guru.mired.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 22:18:42 -0500 Message-Id: <1014866322.41505.17.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2002-02-27 at 22:04, Mike Meyer wrote: > Rickard Borgm=E4ster types: > > On Mon, 25 Feb 2002 20:54:47 -0600 > > Dan Nelson hit the keyboard and punched: > > > In the last episode (Feb 25), Mike Makonnen said: > > > > On Mon, 2002-02-25 at 18:03, Rickard Borgm=E4ster wrote: > > > > > Where should i put this? Into rc.conf.local or something maybe? > > > > .login > > > That only works if you use /bin/sh as your shell. You can set global > > > env variables in /etc/login.conf, with the 'setenv' cap. > > I don't get it. > > The command now in .bashrc: > > export PS1=3D$'[ \\u@\\h:\\w ] \\$ ' >=20 > That *can't* be right. You don't really want to set the value of PS1 > to what is currently in a variable name that's probably illegal, do > you? I'm going to assume the "=3D$'" should be "'$=3D". >=20 > > 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. >=20 > Well, first, it's not going to do anything for *csh users, because > their prompt string is in the environment variable prompt, not > PS1. Second, you can't stop them from changing it after they log in, > or via ~/.login.conf themselves. >=20 > Finally, the gods alone know if I've got the quoting right, but you > could try: >=20 > setenv=3DPS1=3D$[ \\u@\\h\c\\w ] \\$ , >=20 > I haven no idea if gdm works in such a way as to use login.conf, but > it would be a *bad* thing if it didn't, as several critical limits on > users are set in that file. gdm as of 2.2.5.4_1 should support login.conf and .login_conf. Let freebsd-gnome@ know if you find problems. Joe >=20 > -- > Mike Meyer http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more informat= ion. >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message