Date: 27 Feb 2002 22:18:42 -0500 From: Joe Clarke <marcus@marcuscom.com> To: Mike Meyer <mwm-dated-1015297459.2c9163@mired.org> Cc: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= <doktorn@realworld.nu>, questions@FreeBSD.ORG Subject: Re: System-wide environment variables Message-ID: <1014866322.41505.17.camel@shumai.marcuscom.com> In-Reply-To: <15485.40498.537327.335024@guru.mired.org> References: <15485.40498.537327.335024@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2002-02-27 at 22:04, Mike Meyer wrote: > Rickard Borgm=E4ster <doktorn@realworld.nu> types: > > On Mon, 25 Feb 2002 20:54:47 -0600 > > Dan Nelson <dnelson@allantgroup.com> 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 > -- > Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1014866322.41505.17.camel>