Document how to rapidly preview theme on a file
commit3446fdf5f26f018ebd729a901aaae85f3e4787ea
authorGrégoire Paris <postmaster@greg0ire.fr>
dateSat 6 Oct 2018, 19:38 (8 years ago)
parente1345cd
README.md+3
@@ -190,6 +190,9 @@ highlighting. To select the `TwoDark` theme, call `bat` with the
190190`--theme=TwoDark` option or set the `BAT_THEME` environment variable to
191191`TwoDark`. Use `export BAT_THEME="TwoDark"` in your shell's startup file to
192192make the change permanent.
193+Want to rapidly preview the themes on a file that matters to you? Have
194+[`fzf`](https://github.com/junegunn/fzf) installed? Try this:
195+`bat --list-themes|fzf --preview='bat --theme={} --color=always /path/to/file'`
193196
194197### Output style
195198