View previous topic :: View next topic |
Author |
Message |
hudsonhauck Apprentice
Joined: 16 May 2002 Posts: 182 Location: Albany, CA
|
Posted: Sat Nov 09, 2002 9:35 am Post subject: ls --color |
|
|
I was thinking, and it would be great if there was way to customize the colors that "ls --color" uses. Is this possible, and if so, how do you do it? Thanks _________________ Matthew Hauck
http://matthauck.blogspot.com/ |
|
Back to top |
|
|
kybber Apprentice
Joined: 25 Jun 2002 Posts: 228 Location: Trondheim, Norway
|
Posted: Sat Nov 09, 2002 9:43 am Post subject: |
|
|
If you do a 'less .bashrc', you should see a reference to dircolors, using a file /etc/DIR_COLORS. In that file different colors are defined for different types of files. |
|
Back to top |
|
|
hudsonhauck Apprentice
Joined: 16 May 2002 Posts: 182 Location: Albany, CA
|
Posted: Sat Nov 09, 2002 6:49 pm Post subject: |
|
|
Ok, I found /etc/DIR_COLORS, but I have no reference to it in .bashrc. How do I reference it? _________________ Matthew Hauck
http://matthauck.blogspot.com/ |
|
Back to top |
|
|
Remington n00b
Joined: 09 Nov 2002 Posts: 2 Location: Calgary, Alberta, Canada
|
Posted: Sat Nov 09, 2002 9:16 pm Post subject: |
|
|
Take a look in /etc/skel You should find a sample .bashrc file which you can use by iteself or use as a reference on how to source /etc/DIR_COLORS |
|
Back to top |
|
|
hudsonhauck Apprentice
Joined: 16 May 2002 Posts: 182 Location: Albany, CA
|
Posted: Sun Nov 10, 2002 12:25 am Post subject: |
|
|
Ok, I tried inserting 'dircolors ~/.dircolors" (with the -b, -c, and no option at all) into my .bashrc/.bash_profile and it doesn't work (I copied /etc/DIR_COLORS to ~/.dircolors). It says Quote: | LS_COLORS='';
export LS_COLORS | when a new terminal is opened. I think that LS_COLORS should not be empty... _________________ Matthew Hauck
http://matthauck.blogspot.com/ |
|
Back to top |
|
|
hudsonhauck Apprentice
Joined: 16 May 2002 Posts: 182 Location: Albany, CA
|
Posted: Sun Nov 10, 2002 12:32 am Post subject: |
|
|
Okay, I forgot to add "TERM Eterm" to it. So now it exports correctly, but it doesn't actually change the ls color settings... _________________ Matthew Hauck
http://matthauck.blogspot.com/ |
|
Back to top |
|
|
|