Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: bakedjake

Message Too Old, No Replies

Changing Colors on Konsole

WHere is this done?

     
9:00 am on Feb 19, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 4, 2002
posts:5044
votes: 0


Hi all,

when I 'ls' i get directories in dark blue. As I have the bg set to black this is difficult to see.

I can't find where I can change these settings? - Ideally I'd like no colors but directories to be listed with a trailing slash like 'dir/'.

Any pointers as to how to change these settings would be much appreciated...

Many thanks

Nick

9:10 am on Feb 19, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 18, 2002
posts:43
votes: 0


You need to edit either .bashrc or .bash_profile in your home directory. Look for a line that says something like this:

alias ls='ls --color'

or alias ls='ls --color=auto' or something similar. This command colors the directories. If you want no color but directories listed with a trailing slash, change the above line to

alias ls='ls -F'
9:15 am on Feb 19, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 4, 2002
posts:5044
votes: 0


Perfect! - now I can stop typing ls --color=never every bloody time ;)

Many thanks, much appreciated...

Nick