From ad7b634ee60ad0fc3a5c72f6291deaa543382553 Mon Sep 17 00:00:00 2001 From: Russ Taylor Date: Thu, 11 Oct 2018 06:52:35 -0700 Subject: [PATCH] Fixes #328 - adds info for light backgrounds. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e3de939d..587a59b1 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,14 @@ the following command (you need [`fzf`](https://github.com/junegunn/fzf) for thi bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file" ``` +`bat` looks good on a dark background by default. However, if your terminal uses a +light background, some themes will work better for you. For example, the `GitHub` +theme is made for light backgrounds. To set your theme permanently, put +`export BAT_THEME="GitHub"` in your shell's startup file (like `.bashrc`). If you'd +like to see the other available themes, run `bat --list-themes`. You can also make +your own theme by following the +['Adding new themes' section below](https://github.com/sharkdp/bat#adding-new-themes). + ### Output style You can use the `--style` option to control the appearance of `bat`s output.