Clarify stdin syntax highlighting in the README
Clarify the requirements for automatic syntax highlighting when reading
input from stdin. Fixes #1028.
commitfca83bf79a9a96fab871fea54df1d090eec7d88b
authorAlexander Jackson <alexanderjackson@protonmail.com>
dateTue 2 Jun 2020, 21:36 (6 years ago)
parentb8ffb8d
README.md+3−1
@@ -62,7 +62,9 @@ Display multiple files at once
6262> bat src/*.rs
6363```
6464
65−Read from stdin, determine the syntax automatically
65+Read from stdin, determine the syntax automatically (note, this will only work
66+if the syntax can be determined from the initial line of the file, usually
67+through a shebang such as `#!/bin/sh`)
6668
6769```bash
6870> curl -s https://sh.rustup.rs | bat