On Sun, 05 Jul 2020 12:59:10 -0400, Todd Zullinger wrote:
        [....] 
> I'm pretty sure those are in /etc, not /etc/dnf.  If they're in the
> latter, can you confirm that and check what package provides them (rpm
> -qf /etc/dnf/DIR_COLORS*)?  I don't see anything providing them.

        You're right. My bad. They're in /etc. And I get # rpm -qf /etc/
dnf/DIR_COLORS*
error: file /etc/dnf/DIR_COLORS*: No such file or directory


>>      In the first one, I found among much else
>> # If you use DOS-style suffixes, you may want to uncomment the
>> following:
>> #.cmd 01;32 # executables (bright green) I changed 32 to 31; removed
>> both hashmarks; no joy; rebooted; still no joy.
>> 
>>      Am I editing the wrong file? That comment about suffixes doesn't
>> quite sit right, but I didn't see anything else that looked likelier.
> 
> Assuming you really meant /etc/DIR_COLORS*, then to be clear, 1) that
> will affect ls rather than dnf; and 2) you _are_ most likely editing the
> wrong file if you edit /etc/DIR_COLORS.
> 
> The logic for which of the 3 files is used is in
> /etc/profile.d/colorls.sh (for bourne-style shells like bash).  Most
> modern terminal support 256 colors (at least), so they'll most likely
> use /etc/DIR_COLORS.256color.

        Am I remembering wrong? Istr that I could tell a given machine 
*once* that I want to see dot files, and it would *always* display them.

> After you edit it, you must source /etc/profile.d/colorls.sh to pick up
> the changes.

        "source" is a verb?? Sorry -- you lost me. What does it mean?

> You can also copy the proper DIR_COLORS* file to your home dir to avoid
> having a clean install overwrite your changes in /etc.  The paths which
> the colorls.sh script uses are:
> 
>     $HOME/.dir_colors.$TERM $HOME/.dircolors.$TERM $HOME/.dir_colors
>     $HOME/.dircolors
> 
> The first one found is used.

        Sigh. The curse of the autodidact strikes again. I know that 
"HOME" in all upper case has a standard meaning, and I suppose "TERM" 
must, too. But I can never remember what it is, nor where to look it up. 

-- 
Beartooth Staffwright, Not Quite Clueless Power User
Remember I know little (precious little!) of where up is.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to