mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
When piped input has no filename hint, bat falls back to plain text. Many
common formats can be reliably identified by shebang or magic-string in the
first line (#!/bin/bash, <?xml, {"json: ...}, etc.). Adds a first-line
pattern matcher to assets.rs.
Fixes #3697