[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls colors



Nick Leverton wrote:

On Thu, Nov 25, 2004 at 08:58:49PM +0000, Nick Sanders wrote:
On Thursday 25 November 2004 20:39, Nick Leverton wrote:
Using a quite background in konsole, how do I change the colours that
ls uses by default for different types of file ?

Have a look at ~/.bashrc in particular the line below

alias ls='ls --color=auto'

I don't see a way to change them there ?

Nick

I think his point was that ls is the program actually creating the color changes, and you'll have to look at the manpage and docs for ls to find out how to make changes.

I believe GNU fileutils has a program called dircolors that will help you set the colors for ls in various shells. You can put its output into your shell's startup for a more "permanent" change for your user. Look in your environment and see if you have an LS_COLORS variable, if I'm reading this right. I've never changed them.

You may also run into weird behaviour if you log into the machine remotely as yourself if you tweak with color settings. I tend to ignore them or turn them off by taking out the alias from "ls" to "ls --color" altogether if they're causing problems. Doesn't sound like you've run into that level of "fun" yet, though.

Good luck with it. You're on the right track looking into it from the "ls" side, it's not konsole doing it.

--
Nate Duehr, nate@natetech.com




Reply to: