-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[macos] Dark mode #641
Copy link
Copy link
Closed
Labels
feature-requestNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedthemes
Description
Hi,
is there a way to instruct bat to use a different theme when the OS (macOS in particular) is using a dark theme/mode?
Right now, I use this "hack" which works fine, but I'm wondering if there is a more native approach to this.
cat() {
bat --theme=$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub) $1
}Thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedthemes