Skip to content

Commit 5ea762a

Browse files
simonokeith-hall
authored andcommitted
Use built-in detection for OS theme in Readme
1 parent bbb5829 commit 5ea762a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ theme based on the OS theme. The following snippet uses the `default` theme when
691691
and the `GitHub` theme when in the _light mode_.
692692

693693
```bash
694-
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
694+
alias cat="bat --theme auto:system --theme-dark default --theme-light GitHub"
695695
```
696696

697697

0 commit comments

Comments
 (0)