diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-16 10:54:53 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-16 10:54:53 +0100 |
commit | 3e3c1981f96c64409092ecc8506e5fbec132cab4 (patch) | |
tree | 028d026c7720e868d8a3a80dd6840e5fce3ee3c7 /man | |
parent | 621e26d4273dca657d5679a069a751914900019f (diff) |
Document -c
Diffstat (limited to 'man')
-rw-r--r-- | man/grab.1 | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.Dd January 12 2024 +.Dd January 16 2024 .Dt GRAB 1 .Os .Sh NAME @@ -6,14 +6,14 @@ .Nd search for patterns in files .Sh SYNOPSIS .Nm -.Op Fl fnz +.Op Fl cfnz .Ar pattern .Op Ar .Nm .Fl h .Pp .Nm "git grab" -.Op Fl nz +.Op Fl cnz .Ar pattern .Op Ar glob ... .Nm "git grab" @@ -77,6 +77,20 @@ options. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl c , Fl Fl color +Force colored output, +even if the output device is not a TTY. +This is useful when piping the output of +.Nm +into a pager such as +.Xr less 1 . +.Pp +Even when this option is specified, +if the +.Ev TERM +environment variable is set to +.Sq dumb , +no color will be output. .It Fl f , Fl Fl filenames Always prefix matches with the names of the files in which the matches were made, @@ -147,6 +161,13 @@ or 36 if unset. .It Ev NO_COLOR Do not display any colored output when set to a non-empty string, even if the standard-output is a terminal. +.It Ev TERM +If set to +.Sq dumb +disables colored output, +even when the +.Fl c +option is provided. .El .Pp The |