mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-03 12:18:49 +01:00
Document how to rapidly preview theme on a file
This commit is contained in:
parent
e1345cdc2a
commit
3446fdf5f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user