Subject: How to sort with colorls ?
To: None <current-users@netbsd.org>
From: Zafer Aydogan <zafer@gmx.org>
List: current-users
Date: 10/20/2004 11:55:19
Hej Newsgroup,

i'm using colorls-2.2 as an alias for ls, for colored listings :)
Now, I noticed that colorls is not able to sort, like ls can do.
e.g.

$ls -lS
colorls: unknown option -- S
usage: ls [-1ACFLRTacdfiklqrstu] [file ...]
$/bin/ls -lS
total 6128
-rw-r--r--  1 zafer  users  1446724 Oct 13 10:29 08030002.png
-rw-------  1 zafer  users   761610 Sep  2 15:31 mbox
-rw-r--r--  1 zafer  users   498694 Oct 13 10:30 08030002.gif
-rw-r--r--  1 zafer  users   120529 Oct 13 09:32 imagealbum-2.0.0b2.tar.gz
-rw-r--r--  1 zafer  users   105432 Oct 13 10:28 08030002.jpg
drwxr-x---  2 zafer  users     1536 Oct 18 12:13 fahrplan
drwx------  2 zafer  users      512 Sep  2 15:32 Mail
drwxr-xr-x  2 zafer  users      512 Aug 17 13:03 VILEARN
-rwxr-xr-x  1 zafer  users      466 Oct 13 15:03 buildall.MP.sh
-rwxr-xr-x  1 zafer  users      456 Oct 14 12:53 buildall.sh
-rwxr-xr-x  1 zafer  users      123 Sep  7 19:04 copykernel.sh
lrwxr-xr-x  1 zafer  users       28 Aug 13 14:27 htdocs ->
/usr/pkg/share/httpd/htdocs/

$ alias
alias ll='ls -alF'
alias ls='colorls -GCFk'
$

Any Ideas, how to sort without losing the color ?

Thx, Zafer.