Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On my MacBook Pro, I have iTerm and use the (black background) Pastel color set. World writable directories show up with a yellow background behind grey text. This I can live with, since the grey is dark enough to still be visible when surrounded by the muted yellow color.

But when I connect to my company's Slackware servers (via ssh and tcsh as my shell on the remote side), 777 directories show up as solid blocks of light green, as both bg and text color are identical (or close enough to make the text impossible to read).

How do I change the color used for the backgrounds of world-readable (777) directories?

Thanks!

-Brian

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I take it that this is output from ls, rather than tab-completion of shells? (I know at least one shell which can colourise shell tab-completions but you don't say, so I'll assume ls).

Use $LS_COLORS, often initialised via the dircolors(1) command. dircolors -p to see the defaults, take the output from the two systems and diff.

Drop the desired config into ~/.dircolors and then:

set d=$HOME/.dircolors
if ( -r $d ) eval `dircolors -c $d`

[modified from the info docs for dircolors invocation, in the coreutils package]

share|improve this answer
    
To reproduce the gray on yellow, you'll probably want ow=103;30;01 –  Dennis Williamson Sep 22 '10 at 0:26
    
Thanks guys, ow=30;42 is what I was looking for. –  Brian Sep 23 '10 at 18:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.