ColorlessAugust 31st, 2007 — ddelmoli
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).