mirror of
https://github.com/sharkdp/bat.git
synced 2025-06-21 01:57:46 +02:00
Use relative links in README.md
This commit is contained in:
parent
b662fec214
commit
9d43104e16
@ -474,7 +474,7 @@ 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. Alternatively, use `bat`s
|
make the change permanent. Alternatively, use `bat`s
|
||||||
[configuration file](https://github.com/sharkdp/bat#configuration-file).
|
[configuration file](#configuration-file).
|
||||||
|
|
||||||
If you want to preview the different themes on a custom file, you can use
|
If you want to preview the different themes on a custom file, you can use
|
||||||
the following command (you need [`fzf`](https://github.com/junegunn/fzf) for this):
|
the following command (you need [`fzf`](https://github.com/junegunn/fzf) for this):
|
||||||
@ -485,7 +485,7 @@ 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
|
`bat` looks good on a dark background by default. However, if your terminal uses a
|
||||||
light background, some themes like `GitHub` or `OneHalfLight` will work better for you.
|
light background, some themes like `GitHub` or `OneHalfLight` will work better for you.
|
||||||
You can also use a custom theme by following the
|
You can also use a custom theme by following the
|
||||||
['Adding new themes' section below](https://github.com/sharkdp/bat#adding-new-themes).
|
['Adding new themes' section below](#adding-new-themes).
|
||||||
|
|
||||||
### 8-bit themes
|
### 8-bit themes
|
||||||
|
|
||||||
@ -513,7 +513,7 @@ You can use the `--style` option to control the appearance of `bat`s output.
|
|||||||
You can use `--style=numbers,changes`, for example, to show only Git changes
|
You can use `--style=numbers,changes`, for example, to show only Git changes
|
||||||
and line numbers but no grid and no file header. Set the `BAT_STYLE` environment
|
and line numbers but no grid and no file header. Set the `BAT_STYLE` environment
|
||||||
variable to make these changes permanent or use `bat`s
|
variable to make these changes permanent or use `bat`s
|
||||||
[configuration file](https://github.com/sharkdp/bat#configuration-file).
|
[configuration file](#configuration-file).
|
||||||
|
|
||||||
>[!tip]
|
>[!tip]
|
||||||
> If you specify a default style in `bat`'s config file, you can change which components
|
> If you specify a default style in `bat`'s config file, you can change which components
|
||||||
@ -630,7 +630,7 @@ If you want to pass command-line arguments to the pager, you can also set them v
|
|||||||
export BAT_PAGER="less -RF"
|
export BAT_PAGER="less -RF"
|
||||||
```
|
```
|
||||||
|
|
||||||
Instead of using environment variables, you can also use `bat`s [configuration file](https://github.com/sharkdp/bat#configuration-file) to configure the pager (`--pager` option).
|
Instead of using environment variables, you can also use `bat`s [configuration file](#configuration-file) to configure the pager (`--pager` option).
|
||||||
|
|
||||||
|
|
||||||
### Using `less` as a pager
|
### Using `less` as a pager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user