Document how to rapidly preview theme on a file

This commit is contained in:
Grégoire Paris 2018-10-06 19:38:02 +02:00 committed by David Peter
parent e1345cdc2a
commit 3446fdf5f2

View file

@ -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