# bat v0.22.0 - Product: bat (https://whatsnew.fyi/product/bat) - Vendor: David Peter - Date: 2022-09-06 - Version: v0.22.0 - Original notes: https://github.com/sharkdp/bat/releases/tag/v0.22.0 - Permalink: https://whatsnew.fyi/product/bat/releases/v0.22.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Make the default macOS theme depend on Dark Mode - **added** — Support for separate system and user config files - **fixed** — Prevent fork nightmare with PAGER=batcat - **fixed** — Make --no-paging/-P override --paging=... if passed as a later arg - **fixed** — Make --map-syntax and --ignored-suffix work together - **fixed** — Strip byte order mark from output when in non-loop-through mode - **changed** — Relax glibc requirements on amd64 - **changed** — Improve fish completions - **changed** — Stop pre-processing ANSI escape characters - **changed** — Map NSE (Nmap Scripting Engine) to Lua - **changed** — Correctly color fstab dump and pass fields - **changed** — Update Command Help syntax - **fixed** — Fix Julia syntax highlighting for function name starting with struct - **changed** — Update LiveScript syntax - **changed** — Associate .mts and .cts files with the TypeScript syntax - **changed** — Map Fish history to YAML - **changed** — Make bat::PrettyPrinter::syntaxes() iterate over new bat::Syntax struct instead of &syntect::parsing::SyntaxReference - **fixed** — Clear highlights after printing ##### Features - Make the default macOS theme depend on Dark Mode. See #2197, #1746 (@Enselic) - Support for separate system and user config files. See #668 (@patrickpichler) ##### Bugfixes - Prevent fork nightmare with `PAGER=batcat`. See #2235 (@johnmatthiggins) - Make `--no-paging`/`-P` override `--paging=...` if passed as a later arg, see #2201 (@themkat) - `--map-syntax` and `--ignored-suffix` now works together, see #2093 (@czzrr) - Strips byte order mark from output when in non-loop-through mode. See #1922 (@dag-h) ##### Other - Relaxed glibc requirements on amd64, see #2106 and #2194 (@sharkdp) - Improved fish completions. See #2275 (@zgracem) - Stop pre-processing ANSI escape characters. Syntax highlighting on ANSI escaped input is not supported. See #2185 and #2189 (@Enselic) ##### Syntaxes - NSE (Nmap Scripting Engine) is mapped to Lua, see #2151 (@Cre3per) - Correctly color `fstab` dump and pass fields, see #2246 (@yuvalmo) - Update `Command Help` syntax, see #2255 - `Julia`: Fix syntax highlighting for function name starting with `struct`, see #2230 - Minor update to `LiveScript`, see #2291 - Associate `.mts` and `.cts` files with the `TypeScript` syntax. See #2236 (@kidonng) - Fish history is mapped to YAML. See #2237 (@kidonng) ##### `bat` as a library - Make `bat::PrettyPrinter::syntaxes()` iterate over new `bat::Syntax` struct instead of `&syntect::parsing::SyntaxReference`. See #2222 (@Enselic) - Clear highlights after printing, see #1919 and #1920 (@rhysd)