mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-05 10:20:34 +01:00
Merge pull request #3243 from simono/patch-2
Use built-in detection for OS theme in Readme
This commit is contained in:
commit
ad8da94d2a
@ -691,7 +691,7 @@ theme based on the OS theme. The following snippet uses the `default` theme when
|
|||||||
and the `GitHub` theme when in the _light mode_.
|
and the `GitHub` theme when in the _light mode_.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
|
alias cat="bat --theme auto:system --theme-dark default --theme-light GitHub"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user