From owner-freebsd-questions Wed Feb 27 19: 4:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id EAD7C37B400 for ; Wed, 27 Feb 2002 19:04:22 -0800 (PST) Received: (qmail 75477 invoked by uid 100); 28 Feb 2002 03:04:19 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <15485.40498.537327.335024@guru.mired.org> Date: Wed, 27 Feb 2002 21:04:18 -0600 To: Rickard "Borgmäster" Cc: questions@freebsd.org Subject: Re: System-wide environment variables In-Reply-To: <21801178@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 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 glob= al > > 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 ] \\$ ' 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". > 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. 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. Finally, the gods alone know if I've got the quoting right, but you could try: =09setenv=3DPS1=3D$[ \\u@\\h\c\\w ] \\$ , 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. =09=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