[Tfug] tfug Digest, Vol 39, Issue 33

Mike Martinet mmrtnt at earthlink.net
Mon Oct 16 10:20:27 MST 2006


>Message: 1
>Date: Fri, 13 Oct 2006 15:01:05 -0700
>From: "Matt Jacob" <matt.jacob at gmail.com>
>Subject: [Tfug] Changing xterm colors
>To: "Tucson Free Unix Group" <tfug at tfug.org>
>Message-ID:
>	<ca18f5360610131501w3d42d777k96d8ce6c0c8423e4 at mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>At work, I have access to a few boxes via SSH. One is running Red Hat,
>and one is running Gentoo. The RH box uses a really dark shade of blue
>for directories (when using ls --color) and also for comments in vim.
>My terminal background is black, so dark blue on black is nearly
>impossible to read. The Gentoo box uses a brighter shade of blue,
>which I can actually read against the black background.
>
>The question: How do I change my color settings on the RH box to make
>them the same as the Gentoo box? I've checked out setterm, and I think
>that may be what I want, but I'm confused as to what exactly I need to
>do. Any ideas?
>
>If all of this has been thoroughly confusing, I can post screen shots
>to illustrate the difference.
>
>Matt

Well, the default background color for my xterm (on FC4) is white.  Sounds like if you could use a white background, you'd solve half your problems right there.

xterm -bg white

You can change bash's directory listing colors by exporting a new LS_COLORS environment variable.  Here's the one I use with transparent Eterm's - it lists directories in bright green:

export LS_COLORS='no=00:fi=00:di=01;32:ln=01;36:pi=40;34:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:
ex=01;33:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:
*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:
*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:
*.fli=01;35:*.gl=01;35:*.dl=01;35:'

The dircolors program will dump the information needed to configure a new LS_COLORS environment variable:

dircolors --print-database | more

Good Luck!

MjM






More information about the tfug mailing list