You are not logged in.

#1 2006-02-04 13:17:45

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

ls with colors

Do you have ls with colors?

Both on console and in xterm/konsole I have monochromatic output of ls, to turn on colors I need to use:

ls --color=tty

What was your way to configure it for whole system (alias?) or what I did wrong?

Offline

#2 2006-02-04 13:21:29

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: ls with colors

add to ~/.bashrc

alias ls='ls --color=auto'

then relogin.

Offline

#3 2006-02-04 13:37:14

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

Re: ls with colors

I wrote about alias in original post, is there no better way to do it?

Offline

#4 2006-02-04 14:06:05

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: ls with colors

i cant see why you would need a better way. if you want a system wide one, put it in /etc/profile.

iphitus

Offline

Board footer

Powered by FluxBB