mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-22 06:20:44 +01:00
Fixes #328 - adds info for light backgrounds.
This commit is contained in:
parent
1310f83c8d
commit
ad7b634ee6
@ -218,6 +218,14 @@ the following command (you need [`fzf`](https://github.com/junegunn/fzf) for thi
|
||||
bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
|
||||
```
|
||||
|
||||
`bat` looks good on a dark background by default. However, if your terminal uses a
|
||||
light background, some themes will work better for you. For example, the `GitHub`
|
||||
theme is made for light backgrounds. To set your theme permanently, put
|
||||
`export BAT_THEME="GitHub"` in your shell's startup file (like `.bashrc`). If you'd
|
||||
like to see the other available themes, run `bat --list-themes`. You can also make
|
||||
your own theme by following the
|
||||
['Adding new themes' section below](https://github.com/sharkdp/bat#adding-new-themes).
|
||||
|
||||
### Output style
|
||||
|
||||
You can use the `--style` option to control the appearance of `bat`s output.
|
||||
|
Loading…
Reference in New Issue
Block a user