From owner-freebsd-questions@FreeBSD.ORG Sun Aug 21 07:38:05 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7093016A41F for ; Sun, 21 Aug 2005 07:38:05 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F7BD43D48 for ; Sun, 21 Aug 2005 07:38:05 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j7L7c3v4027681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Aug 2005 00:38:03 -0700 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20050821002458.058bad60@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sun, 21 Aug 2005 00:38:38 -0700 To: Eric Murphy , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <22291286.1124607000254.JavaMail.root@elwamui-rustique.atl. sa.earthlink.net> References: <22291286.1124607000254.JavaMail.root@elwamui-rustique.atl.sa.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Few simple questions.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2005 07:38:05 -0000 At 11:50 PM 8/20/2005, Eric Murphy wrote: >QUESTION:::: 1 > >Hey guys I use gnuls for colorizing my outputs such as ls..ect.. its >really just an alias. > >When i added the alias to my /etc/profile I noticed that under X my >terminals were not colorized but if i were to LOGIN to another TTY >without X, it would be colorized. Now i know that /etc/profile is >only read if your logging in with bash... so what i did was create a >.bashrc with my alias in my home directory and it worked fine within >X. My question is this.... for users that login with gdm/kdm >ect...and start X how can i set colorized outputs for them without >creating a .bashrc file in each home directory. Is there a global >bashrc file that can be read for people that dont login? > >ugh i know this sounds confuseing but i dont know any other way to explain it? > > >maybe this can explain it... > >When an interactive shell that is not a login shell is started, bash >reads and executes commands from ~/.bashrc, if that file exists. This >may be inhibited by using the --norc option. The --rcfile file option >will force bash to read and execute commands from file instead of >~/.bashrc. > > >So if it doesnt read /etc how can I set global colors (for all >users) for a interactive shell that isnt a login shell? Without >creating ~/.bashrc's in each home directory. If you set CLICOLOR in both /etc/profile and /etc/csh.cshrc that should enable colorized ls and things for everyone. -Glenn