Use built-in detection for OS theme in Readme

This commit is contained in:
Simon Olofsson authored and Keith Hall committed 2025-03-29 05:15:38 +02:00
1 parent bbb5829ad9
commit 5ea762a46c
1 file changed
+1 -1
+1 -1
View File
@@ -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_.
```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"
```