From d83c93c8059eb0d44074880552d9cc366944d427 Mon Sep 17 00:00:00 2001 From: David Peter Date: Sun, 7 Oct 2018 18:39:52 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c84f3fef..f9bc1433 100644 --- a/README.md +++ b/README.md @@ -53,15 +53,18 @@ Display multiple files at once > bat src/*.rs ``` -Read from stdin, explicitly specify the language +Read from stdin, determine the syntax automatically + +```bash +> curl -s https://sh.rustup.rs | bat +``` + +Read from stdin, specify the language explicitly ```bash > yaml2json .travis.yml | json_pp | bat -l json ``` -```bash -> curl -s https://raw.githubusercontent.com/sharkdp/bat/master/src/main.rs | bat -l rs -``` As a replacement for `cat`: