1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-12 07:58:52 +00:00

Update man page

This commit is contained in:
sharkdp 2018-10-17 23:13:50 +02:00
parent 8dc7e2efa3
commit 931c6e9414

View File

@ -21,6 +21,12 @@ names and file extensions.
.IP .IP
Display a list of supported languages for syntax highlighting. Display a list of supported languages for syntax highlighting.
.HP .HP
\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
.IP
Map a file extension or file name to an existing syntax. For example, to highlight
*.conf files with the INI syntax, use '\-m conf:ini'. To highlight files named
\&'.myignore' with the Git Ignore syntax, use '\-m .myignore:gitignore'.
.HP
\fB\-\-theme\fR <theme> \fB\-\-theme\fR <theme>
.IP .IP
Set the theme for syntax highlighting. Use '\-\-list\-themes' to see all Set the theme for syntax highlighting. Use '\-\-list\-themes' to see all
@ -41,7 +47,7 @@ theme, export the BAT_STYLE environment variable (e.g.: export
BAT_STYLE="numbers"). [possible values: auto, full, plain, changes, header, BAT_STYLE="numbers"). [possible values: auto, full, plain, changes, header,
grid, numbers] grid, numbers]
.HP .HP
\fB\-p\fR \fB\-p\fR, \fB\-\-plain\fR
.IP .IP
Only show plain style, no decorations. This is an alias for '\-\-style=plain' Only show plain style, no decorations. This is an alias for '\-\-style=plain'
.HP .HP
@ -64,38 +70,34 @@ prints lines 40 to the end of the file
.HP .HP
\fB\-\-color\fR <when> \fB\-\-color\fR <when>
.IP .IP
Specify when to use colored output. The automatic mode only enables colors if Specify when to use colored output. The automatic mode only enables colors if an
an interactive terminal is detected. [default: auto] [possible values: auto, interactive terminal is detected. Possible values: *auto*, never, always.
never, always]
.HP .HP
\fB\-\-decorations\fR <when> \fB\-\-decorations\fR <when>
.IP .IP
Specify when to use the decorations that have been specified via '\-\-style'. Specify when to use the decorations that have been specified via '\-\-style'. The
The automatic mode only enables decorations if an interactive terminal is automatic mode only enables decorations if an interactive terminal is detected. Possible
detected. [default: auto] [possible values: auto, never, always] values: *auto*, never, always.
.HP .HP
\fB\-\-paging\fR <when> \fB\-\-paging\fR <when>
.IP .IP
Specify when to use the pager. To control which pager is used, set the PAGER Specify when to use the pager. To control which pager is used, set the PAGER or
or BAT_PAGER environment variables (the latter takes precedence). The default BAT_PAGER environment variables (the latter takes precedence). The default pager is
pager is 'less'. To disable the pager permanently, set BAT_PAGER to an empty \&'less'. To disable the pager permanently, set BAT_PAGER to an empty string. Possible
string. [default: auto] [possible values: auto, never, always] values: *auto*, never, always.
.HP .HP
\fB\-\-wrap\fR <mode> \fB\-\-wrap\fR <mode>
.TP
Specify the text\-wrapping mode. [default: auto]
[possible values: auto,
.IP .IP
never, character] Specify the text\-wrapping mode (*auto*, never, character).
.HP .HP
\fB\-u\fR \fB\-\-tabs\fR <T>
.IP .IP
This option exists for POSIX\-compliance reasons ('u' is for 'unbuffered'). The Set the tab width to T spaces. Use a width of 0 to pass tabs through directly
output is always unbuffered \- this option is simply ignored.
.HP .HP
\fB\-\-tabs\fR <tabs> \fB\-u\fR, \fB\-\-unbuffered\fR
.IP .IP
Sets the tab width. Use a width of 0 to pass tabs through directly This option exists for POSIX\-compliance reasons ('u' is for 'unbuffered'). The output is
always unbuffered \- this option is simply ignored.
.HP .HP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR
.IP .IP