From 5ea762a46c7940366e75693285af7e146eab4b7d Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Sat, 29 Mar 2025 00:07:48 +0100 Subject: [PATCH] Use built-in detection for OS theme in Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d628a17..3b3c8ec4 100644 --- a/README.md +++ b/README.md @@ -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" ```