Colorless

No, I’m not describing anyone’s personality, least of all my own :-)

I should title this series “An Oracle person’s experiences as a Linux SA”….

From my earlier posting, you all know that I like xterms with dark backgrounds and white foregrounds.  I’ve always liked typing that way — probably from my old terminal days.  I gave up on trying to make MS Word (You can do white on blue, albeit it’s a very bright blue) do that — and anyway word processing is different than a terminal to me any day.

Of course, Linux likes to colorize directory listings — and I can’t see the dark, dark blue of directory entries against my black background.  So, on to figuring out why it’s doing that and to make it stop…

LS_OPTIONS looks like it will do the trick, so I set it to –color=none and export it into my environment.  No luck.  Maybe it needs to be set in my login shell, and since it’s my machine and I think everyone should turn it off, I edit /etc/profile and set it there.  Logout / login — still no luck.

Maybe ls is aliased?  Yep — I run “alias ls” and I see that it is.  Since I don’t have an alias file I wonder where global aliases are set.  Maybe /etc/alias or /etc/aliases?  No, no such file exists.

Go back and look at /etc/profile — at the end of the file it goes to /etc/profile.d and runs every .sh file in that directory — odd.  One of those is colorls.sh which of course sets a whole bunch of aliases for ls.  So I rename colorls.sh to colorls.sh.org, re-login and poof!  No more colors.

I don’t like aliasing commands — leads  to confusion.  About the only commands I alias are cd and vi (points to vim nowadays….).

Edit: I’ve since learned that LS_OPTIONS doesn’t do anything anyway — ls doesn’t look at it.  It’s only used when aliasing ls… (rolls eyes).

2 Responses to “Colorless”

  1. Sidhu Says:

    lol…good one…

    But that colored listing does look good (definitely its an issue with black background :(

    I alias only 2 commands one “l” for “ls -altr” and another occasionally “cls” for “clear”. Another thing that I do every time is “ksh -o vi” (except on Linux where we are in bash and tab works)

    Sidhu

  2. Rob Says:

    I’ve noticed that on higher quality LCD monitors, I have no problem with reading blue lettering on a black background. On lower quality LCD panels, it’s very difficult. I’ve started using this as a measure to judge monitors.

    Out of the monitors I’ve used, the LG-Phillips panels in the Apple and Dell displays pass. The Samsung SyncMaster 213T passes. The cheap Samsung displays I tried at Best Buy failed. A small Viewsonic LCD monitor I was forced to use one time failed.

Leave a Reply

Posting code can be a pain. To make sure your code doesn't get eaten, you may want to pre-format it first by using HTML Encoder