Title: Theory / Unimportant / CS / command line / text streaming / bat
On every note of this deck, unless a note says otherwise:
Prefix: bat

Name: Bat
Definition: Cat clone with wings (supports syntax highlighting)
Page: https://github.com/sharkdp/bat
Context: Unix

Instruction: bat
Page: https://github.com/sharkdp/bat
Effect: Show STDIN, syntax colored with the guessed programming language, also show difference with git head in git repo.
If output is redirected and not shown, plain file content is outputted
Context: Unix

Fla: --show-all
Effect: show and highlight non-printable characters
Page: https://github.com/sharkdp/bat
Flag abbreviation: -A

Fla: --paging=never
Effect: Don't send output to a pager, even if the output don't fill on the screen
Page: https://github.com/sharkdp/bat

Fla: file_names
Effect: show the content of file_names instead of stdin
Page: https://github.com/sharkdp/bat

Instruction: batman
Page: https://github.com/sharkdp/bat
Effect: same as `man` but displayed with `bat` colouring
Context: Unix

Instruction: prettybat
Page: https://github.com/sharkdp/bat
Effect: format code with pretty and print with bat
Context: Unix

Fla: list all existing themes instead of showing stdin content
Effect: --list-themes
Page: https://github.com/sharkdp/bat

Fla: add syntax colouring only for styles s1, .. and sn, nothing else.
Effect: --style=s1,...,sn
Page: https://github.com/sharkdp/bat

Fla: --style=line --number
Effect: add line number
Page: https://github.com/sharkdp/bat
Flag abbreviation: -n

Fla: add styles for git diff
Effect: --style=changes
Page: https://github.com/sharkdp/bat

Fla: print directory for bat configuration instead of stdin
Effect: --config-dir
Page: https://github.com/sharkdp/bat

Fla: files whose name follow pattern gets style syntax_name
Effect: --map-syntax='pattern:syntax_name'
Page: https://github.com/sharkdp/bat
Flag abbreviation: -m='pattern:syntax_name'

Variable: BAT_PAGER
Meaning: the pager to use for `bat`
Page: https://github.com/sharkdp/bat
Context: bat

Fla: --tabs=n
Effect: tabs are replaced with n spaces
Page: https://github.com/sharkdp/bat
Default: 4

Fla: output a default configuration file
Effect: --generate-config-file
Page: https://github.com/sharkdp/bat

Typ: bat configuration file
Page: https://github.com/sharkdp/bat
Language: bat
Implementation: A list of command line arguments to pass to bat

Fla: --plain --style=plain
Effect: Only show plain style, no decorations.
Page: https://www.mankier.com/1/bat
Flag abbreviation: -p

Fla: -pp
Effect: no paging and plain style
Page: https://www.mankier.com/1/bat

Fla: --language language
Effect: syntax color for language language
Page: https://www.mankier.com/1/bat
Flag abbreviation: -l language

Fla: --highlight-line n:m
Effect: add colour to background of lines n to m included
Page: https://www.mankier.com/1/bat
Flag abbreviation: -h n:m

Fla: --highlight-line n
Effect: add colour to background of line n
Page: https://www.mankier.com/1/bat
Flag abbreviation: -h n

Fla: --highlight-line n:
Effect: add colour to background starting line n
Page: https://www.mankier.com/1/bat
Flag abbreviation: -h n:

Fla: --highlight-line :n
Effect: add colour to background up to line n
Page: https://www.mankier.com/1/bat
Flag abbreviation: -h :n

Fla: file-name n
Effect: display file-name as n
Page: https://www.mankier.com/1/bat

Fla: --terminal-width w
Effect: display assuming terminal width is w
Page: https://www.mankier.com/1/bat

Fla: --wrap mode
Effect: change wrapping to mode
Page: https://www.mankier.com/1/bat

Fla: --color auto|never|always
Effect: indicate when to apply color
Page: https://www.mankier.com/1/bat

Fla: --italic-text always|never
Effect: indicate when to use ANSI sequences for italic text in the output
Page: https://www.mankier.com/1/bat
Default: never

Fla: --decorations auto|always|never
Effect: indicate when to apply the --style
Page: https://www.mankier.com/1/bat
Default: auto

Fla: --theme t
Effect: apply theme t
Page: https://www.mankier.com/1/bat

Fla: --style=full
Effect: todo
Page: https://www.mankier.com/1/bat

Fla: --style=header
Effect: todo
Page: https://www.mankier.com/1/bat

Fla: --style=grid
Effect: todo
Page: https://www.mankier.com/1/bat

Fla: --style=rule
Effect: todo
Page: https://www.mankier.com/1/bat

Fla: --style=snip
Effect: todo
Page: https://www.mankier.com/1/bat

Fla: --list-languages
Effect: list all languages that can be coloured instead of outputting io
Page: https://www.mankier.com/1/bat
Flag abbreviation: -L

Fla: --help
Effect: print help message and exit
Page: https://www.mankier.com/1/bat
Flag abbreviation: -h

Fla: --version
Effect: print version number and exit
Page: https://www.mankier.com/1/bat
Flag abbreviation: -v