Colorful File Names in Konsole
Hi,
I want the file names to be colorful in the Konsole terminal window. Such as while txt files are brown, documents are blue, header files are another colour...etc. When I type "ls" in the home (~) directory it's just as I want (which I am used to), but when I enter into a directory and type "ls" everything is Black&White. How can I change it to be the same in other directories? PS. Which one is correct, "Color" or "Colour"? As far as I remember they are both ok. While Americans say Color, English say Colour. Or vice versa? I cant remember which one is which? |
I'm not quite sure I follow...
Are you saying that the only directory you get directory colourisation in is ~, but other directories on your machine present themselves as b&w? Or do you mean that you're sshing/telneting into another machine, and it's all b&w? Cheers, Tink P.S.: You got the spelling things right, Americans just can't spell proper. :} |
Quote:
Yes I get colourisation only in "~" For example if I jump into Desktop folder and type "ls" all file and folder names are B&W. At school in labs we use RedHat and they show in the way I told. And I got used to them :) By the way, I use SuSE 9.3.. |
Here is the inside of /bash.bashrc
Code:
# What should I change here? Also in the comments section of the code it says "Do not edit this code. Instead edit /etc/bash.bashrc.local" But I couldn't find the file where it supposed to be. |
it's kind of hard to comment on that script without the whole thing and it's profile brothers and sisters
i can't really argue with the script even though i think that stuff should be in profile and not bashrc but whatever the behaviour you describe is very weird i think first try this in your ~/.bashrc alias ls='ls --color=auto' if that doesn't work try putting the same command in ~/.bash_profile as well if that doesn't work try adding this to ~/.bash_profile in adidion to the other things (check out the file first /etc/dircolors and make sure that's what it is called) the global script is using a variable i think "DIR_COLORS" ? Code:
if [ -f "/etc/dircolors" ] ; then |
All times are GMT -5. The time now is 03:08 PM. |