On 12/2/05, Karl <[EMAIL PROTECTED]> wrote:
> hi, I want to be a bit more specific (or anal!), I wanted to make it
> global. Upon reviewing the /etc/bashrc, it contains:
>
>   alias 'ls = ls --color=auto'
>
> but it also contains:
>
>   source /etc/profile.d/tinker-term.sh
>
> which in turn contains:
>
>   export TERM=xterm-color
>
> If I type "export" it displays:
>
>   TERM=linux #(as mentioned by Matt)
>
> I created a .bashrc and put:
>
>   export TERM=xterm-color
>
> into it, when I startx ls gives no colour but mc is now blue which is
> halfway there.
> I then added:
>
>   alias ls='ls --color=auto'
>
> Now everything is in colour. Why does /etc/bashrc, in conjunction
> with /etc/profile.d/tinker-term.sh, not do this for me?
> I can't see the relationship between the worms and the spice!

man bash : there are several configuration files that are read only in
certain cases : interactive shell, login shell, etc ... When you login
in a console, of course yo have started a login shell. When you open a
xterm (have you noticed you don't have to login in it ?) you start a
non-login shell.
An easy way to fix all the problem is for example to create a
~/.bashrc file, and a symlink on it from ~/.bash_profile . Of course
doing things this way, you lose all specific settings.

Jeremy
--
Linux Registered User #317862
Linux From Scratch Registered User #16571
Please do not send me .doc, .xls, .ppt, as I will *NOT* read them.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to