BSD Ports

sysutils/colorls 7.9 OpenBSD

ls(1) that can use color to display file attributes

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Christian Weisgerber <[email protected]>
Categories
sysutils

Description

This is a simple hack, taken from FreeBSD, to OpenBSD's ls(1) to use ANSI sequences to display file attributes in color. There is a -G flag (somewhat similar to the -F flag). Take a look at the man page for details. The program is called "colorls", so you may want to use an alias such as ls=${PREFIX}/bin/colorls.

Note that you need a color-capable terminal to enable colorls. This means you should set your TERM to "wsvt25" on the wscons(4) console and to "sun-color" when using the Sun console, not "vt220" and "sun", respectively, which are not color-capable in termcap(5).

In the other systems

SystemPortVersion
OpenBSDsysutils/colorls7.9
NetBSDmisc/colorls2.2nb2

Install

Binary package:

pkg_add colorls

From the ports tree:

cd /usr/ports/sysutils/colorls && make install

Dependencies

No port depends on this one.