119 lines
2.4 KiB
Plaintext
119 lines
2.4 KiB
Plaintext
$NetBSD: patch-ab,v 1.8 2015/07/09 11:44:09 jperkin Exp $
|
|
|
|
Manual page fixes.
|
|
|
|
--- colorls.1.orig 2015-07-09 11:19:52.025462425 +0000
|
|
+++ colorls.1
|
|
@@ -37,14 +37,22 @@
|
|
.\"
|
|
.Dd July 29, 1994
|
|
-.Dt LS 1
|
|
+.Dt COLORLS 1
|
|
.Os
|
|
.Sh NAME
|
|
-.Nm ls
|
|
-.Nd list directory contents
|
|
+.Nm colorls
|
|
+.Nd list directory contents in color
|
|
.Sh SYNOPSIS
|
|
-.Nm ls
|
|
-.Op Fl ACFLRTWacdfiloqrstu1
|
|
+.Nm colorls
|
|
+.Op Fl ACFGLRTWacdfiloqrstu1
|
|
.Op Ar file ...
|
|
.Sh DESCRIPTION
|
|
+(Note: This man page describes the color version of the program. To
|
|
+minimize the differences from the original, the program is referred to
|
|
+as
|
|
+.Nm ls
|
|
+in this manual. The new option
|
|
+.Fl G
|
|
+is for color display.)
|
|
+.Pp
|
|
For each operand that names a
|
|
.Ar file
|
|
@@ -88,4 +96,10 @@ a percent sign (%) after each whiteout,
|
|
and a vertical bar (|) after each that is a
|
|
.Tn FIFO .
|
|
+.It Fl G
|
|
+Use ANSI color sequences to distinguish file types. (See
|
|
+.Ev LSCOLORS
|
|
+below.) In addition to those mentioned above in
|
|
+.Fl F ,
|
|
+some extra attributes (setuid bit set, etc.) are also displayed.
|
|
.It Fl L
|
|
If argument is a symbolic link, list the file or directory the link references
|
|
@@ -319,4 +333,72 @@ See
|
|
.Xr environ 7
|
|
for more information.
|
|
+.It LSCOLORS
|
|
+The value of this variable describes what color to use for which
|
|
+attribute when the color output
|
|
+.Pq Fl G
|
|
+is specified. This string is a concatenation of pairs of the format
|
|
+.Sy fb ,
|
|
+where
|
|
+.Sy f
|
|
+is the foreground color and
|
|
+.Sy b
|
|
+is the background color.
|
|
+.Pp
|
|
+The color designators are as follows:
|
|
+.Pp
|
|
+.Bl -tag -width 4n -offset indent -compact
|
|
+.It Sy 0
|
|
+black
|
|
+.It Sy 1
|
|
+red
|
|
+.It Sy 2
|
|
+green
|
|
+.It Sy 3
|
|
+yellow
|
|
+.It Sy 4
|
|
+blue
|
|
+.It Sy 5
|
|
+magenta
|
|
+.It Sy 6
|
|
+cyan
|
|
+.It Sy 7
|
|
+white
|
|
+.It Sy x
|
|
+default foreground or background
|
|
+.El
|
|
+.Pp
|
|
+(Note: the above are standard ANSI colors. The actual display may
|
|
+differ depending on the color capabilities of your terminal.)
|
|
+.Pp
|
|
+The order of the attributes are as follows:
|
|
+.Pp
|
|
+.Bl -enum -offset indent -compact
|
|
+.It
|
|
+directory
|
|
+.It
|
|
+symbolic link
|
|
+.It
|
|
+socket
|
|
+.It
|
|
+pipe
|
|
+.It
|
|
+executable
|
|
+.It
|
|
+block special
|
|
+.It
|
|
+character special
|
|
+.It
|
|
+executable with setuid bit set
|
|
+.It
|
|
+executable with setgid bit set
|
|
+.It
|
|
+directory writable to others, with sticky bit
|
|
+.It
|
|
+directory writable to others, without sticky bit
|
|
+.El
|
|
+.Pp
|
|
+The default is "4x5x2x3x1x464301060203", i.e., blue foreground and
|
|
+default background for regular directories, black foreground and red
|
|
+background for setuid executables, etc.
|
|
.El
|
|
.Sh COMPATIBILITY
|