From 3446fdf5f26f018ebd729a901aaae85f3e4787ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 6 Oct 2018 19:38:02 +0200 Subject: [PATCH] Document how to rapidly preview theme on a file --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8423b6e2..8fb393d5 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,9 @@ highlighting. To select the `TwoDark` theme, call `bat` with the `--theme=TwoDark` option or set the `BAT_THEME` environment variable to `TwoDark`. Use `export BAT_THEME="TwoDark"` in your shell's startup file to make the change permanent. +Want to rapidly preview the themes on a file that matters to you? Have +[`fzf`](https://github.com/junegunn/fzf) installed? Try this: +`bat --list-themes|fzf --preview='bat --theme={} --color=always /path/to/file'` ### Output style