Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2005 00:38:38 -0700
From:      Glenn Dawson <glenn@antimatter.net>
To:        Eric Murphy <eam404@earthlink.net>, freebsd-questions@freebsd.org
Subject:   Re: Few simple questions..
Message-ID:  <6.2.3.4.2.20050821002458.058bad60@cobalt.antimatter.net>
In-Reply-To: <22291286.1124607000254.JavaMail.root@elwamui-rustique.atl. sa.earthlink.net>
References:  <22291286.1124607000254.JavaMail.root@elwamui-rustique.atl.sa.earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.2.3.4.2.20050821002458.058bad60>