You are not logged in.

#1 2012-11-15 23:16:05

ImbaLocus
Member
Registered: 2012-05-09
Posts: 20

[SOLVED] ls color of folders in ntfs mount (green on green block)

Hey

Colors of folders in output of ls inside ntfs-mounts are unreadable.

Below is a screenshot of what I'm talking about.

How would one go about to make the output more readable?

tZ2Jibg

I've tried with different color schemes for urxvt in .Xresources but they still are mucked with everyone I've tried.
Does no one in the big terminal color scheme thread really have any ntfs-mounts or is it just me missing something obvious here?

Anyways, any help would be greatly appreciated.

Thanks.

Last edited by ImbaLocus (2012-11-16 02:05:33)

Offline

#2 2012-11-15 23:58:20

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,564
Website

Re: [SOLVED] ls color of folders in ntfs mount (green on green block)

That's you dir_colors. Try:

OTHER_WRITABLE     01;35

Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2012-11-16 00:27:39

ImbaLocus
Member
Registered: 2012-05-09
Posts: 20

Re: [SOLVED] ls color of folders in ntfs mount (green on green block)

jasonwryan wrote:

That's you dir_colors. Try:

OTHER_WRITABLE     01;35

Ok, yet to solve it but thanks for pointing me in the right direction.

dircolors|grep ow

tells me ow=34;42 which at least tells me why and what colors are used.

man dir_colors talks about /etc/DIR_COLORS or ~/.dir_colors both of which files I do not have nor can find.
(I'm guessiong DIR_COLORS is suppoed to be a variable, either env. or defined in the man-page, although neither 'echo $DIR_COLORS nor searching in man-page sheds some light to as what it might actually contain)

I can't quite figure out where and how I'd actually change and store my changes.
I guess I could do something like

export LS_COLORS=...........

but where do I find the "original" line so to speak?

Or in other words, how would I "try OTHER_WRITABLE     01;35"?

Thanks

(btw, I just now tried out a color scheme, jwr low contrast, from the other thread. "small world" ;-) )

Offline

#4 2012-11-16 00:44:04

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,564
Website

Re: [SOLVED] ls color of folders in ntfs mount (green on green block)

You can create your own .dir_colors to override the defaults.

You could also use another one as a start https://pikacode.com/jasonwryan/Veles/f … dir_colors

Glad you like my low contrast theme smile


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2012-11-16 00:50:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] ls color of folders in ntfs mount (green on green block)

$ dircolors --print-database

Offline

#6 2012-11-16 02:05:15

ImbaLocus
Member
Registered: 2012-05-09
Posts: 20

Re: [SOLVED] ls color of folders in ntfs mount (green on green block)

Thanks!

This is what and how I've done:

$ dircolors -p > .dir_colors

Edited the .dir_colors file and tested the changes with

$ eval $(dircolors -b .dir_colors)

and then made them permanent by adding above line to my .zshrc

Greatly appreciate your time jasonwryan and WonderWoofy!

Thanks smile

Offline

Board footer

Powered by FluxBB