From owner-freebsd-questions Fri Feb 23 7:56:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 8DBEF37B4EC for ; Fri, 23 Feb 2001 07:56:19 -0800 (PST) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.2/8.11.2) id f1NFuHN21760; Fri, 23 Feb 2001 10:56:17 -0500 (EST) (envelope-from lowell) To: freebsd-questions@freebsd.org, akadanak@kc.rr.com Subject: Re: CLICOLOR References: <3A9667F9.F68612CF@i-clue.de> From: Lowell Gilbert Date: 23 Feb 2001 10:56:17 -0500 In-Reply-To: akadanak@kc.rr.com's message of "23 Feb 2001 15:29:31 +0100" Message-ID: <44bsrt1jha.fsf@lowellg.ne.mediaone.net> Lines: 32 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG akadanak@kc.rr.com (Dana) writes: > Yeah, that did it. I man'd all over the place > but didn't think of man csh. But that only works > until the next reboot. So I put it in .cshrc > and now it is permanent. > > But now I am thinking, what if I have 1,000 accounts. > There must be a way to set this globally. Sure. Go back to 'man csh': A login shell begins by executing commands from the system files /etc/csh.cshrc and /etc/csh.login. It then executes commands from files in the user's home directory: first ~/.tcshrc (+) or, if ~/.tcshrc is not found, ~/.cshrc, then ~/.history (or the value of the histfile shell vari- able), then ~/.login, and finally ~/.cshdirs (or the value of the dirsfile shell variable) (+). The shell may read /etc/csh.login before instead of after /etc/csh.cshrc, and ~/.login before instead of after ~/.tcshrc or ~/.cshrc and ~/.history, if so compiled; see the version shell vari- able. (+) Non-login shells read only /etc/csh.cshrc and ~/.tcshrc or ~/.cshrc on startup. Of course, this only covers csh, and if you had 1000 users, sure some would want a saner programming shell. You'd need to do the equivalent for other shells as well. Alternatively, you can use login.conf to set environment variables. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message