mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-03 04:08:50 +01:00
Move theme-preview section into own paragraph
This commit is contained in:
parent
f140f6da46
commit
e30e1bab2e
@ -192,9 +192,12 @@ highlighting. To select the `TwoDark` theme, call `bat` with the
|
|||||||
`--theme=TwoDark` option or set the `BAT_THEME` environment variable to
|
`--theme=TwoDark` option or set the `BAT_THEME` environment variable to
|
||||||
`TwoDark`. Use `export BAT_THEME="TwoDark"` in your shell's startup file to
|
`TwoDark`. Use `export BAT_THEME="TwoDark"` in your shell's startup file to
|
||||||
make the change permanent.
|
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:
|
If you want to preview the different themes on a custom file, you can use
|
||||||
`bat --list-themes|fzf --preview='bat --theme={} --color=always /path/to/file'`
|
the following command (you need [`fzf`](https://github.com/junegunn/fzf) for this):
|
||||||
|
``` bash
|
||||||
|
bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
|
||||||
|
```
|
||||||
|
|
||||||
### Output style
|
### Output style
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user