3bat \- manual page for bat
5bat - a cat(1) clone with syntax highlighting and Git integration.
13\fB\-l\fR, \fB\-\-language\fR <language>
15Explicitly set the language for syntax highlighting. The language can be
16specified as a name (like 'C++' or 'LaTeX') or possible file extension (like
17\&'cpp', 'hpp' or 'md'). Use '\-\-list\-languages' to show all supported language
18names and file extensions.
20\fB\-\-list\-languages\fR
22Display a list of supported languages for syntax highlighting.
24\fB\-\-theme\fR <theme>
26Set the theme for syntax highlighting. Use '\-\-list\-themes' to see all
27available themes. To set a default theme, export the BAT_THEME environment
28variable (e.g.: export BAT_THEME="TwoDark").
32Display a list of supported themes for syntax highlighting.
34\fB\-\-style\fR <style\-components>
36Configure which elements (line numbers, file headers, grid borders, Git
37modifications, ..) to display in addition to the file contents. The argument
38is a comma\-separated list of components to display (e.g.
39\&'numbers,changes,grid') or a pre\-defined style ('full') [default: auto]
40[possible values: auto, full, plain, changes, header, grid, numbers]
44Only show plain style, no decorations. This is an alias for '\-\-style=plain'
46\fB\-n\fR, \fB\-\-number\fR
48Only show line numbers, no other decorations. This is an alias for
51\fB\-\-line\-range\fR <N:M>
53Only print the specified range of lines for each file. For example:
55.IP "\-\-line\-range 30:40"
57.IP "\-\-line\-range :40"
59.IP "\-\-line\-range 40:"
60prints lines 40 to the end of the file
65Specify when to use colored output. The automatic mode only enables colors if
66an interactive terminal is detected. [default: auto] [possible values: auto,
69\fB\-\-decorations\fR <when>
71Specify when to use the decorations that have been specified via '\-\-style'.
72The automatic mode only enables decorations if an interactive terminal is
73detected. [default: auto] [possible values: auto, never, always]
75\fB\-\-paging\fR <when>
77Specify when to use the pager. To control which pager is used, set the PAGER
78or BAT_PAGER environment variables (the latter takes precedence). The default
79pager is 'less'. To disable the pager permanently, set BAT_PAGER to an empty
80string. [default: auto] [possible values: auto, never, always]
84Specify the text\-wrapping mode. [default: character]
85[possible values: character, never]
89This option exists for POSIX\-compliance reasons ('u' is for 'unbuffered'). The
90output is always unbuffered \- this option is simply ignored.
92\fB\-h\fR, \fB\-\-help\fR
94Print this help message.
96\fB\-V\fR, \fB\-\-version\fR
98Show version information.
103File(s) to print / concatenate. Use a dash ('\-') or no argument at all to read
109Modify the syntax\-definition and theme cache. See "bat cache --help" for more information
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list