mirror of
https://github.com/sharkdp/bat
synced 2024-11-15 08:37:12 +00:00
Document how to rapidly preview theme on a file
This commit is contained in:
parent
e1345cdc2a
commit
3446fdf5f2
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue