Skip to content

Commit e6dfdd5

Browse files
authored
Use built-in detection for OS theme in Readme
1 parent 5c43ddb commit e6dfdd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ theme based on the OS theme. The following snippet uses the `default` theme when
684684
and the `GitHub` theme when in the _light mode_.
685685

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

690690

0 commit comments

Comments
 (0)