-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: command line option for dark / light theme or theme selection #689
Comments
One thing that might be good is to be able to set the preferred dark and light themes separately, and to simply switch between them using a flag or some environment variable. |
We have decided not to include support for this in It only works on macOS, so far, but maybe it could be extended to support other terminal emulators as well.
That is not possible. Once you see the output in the pager, |
@sharkdp I meant before bat is run, e.g. a command line flag or environment variable before bat is run. :p |
For some reason I thought you wanted to switch dark/light with a key 😄. Must have misread your comment.
That's pretty much what is suggested in https://github.com/sharkdp/bat#dark-mode, right? |
Thanks for the feedback! |
I think the prhasing is incorrect
Because bat --theme="$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)" will instead make bat use
|
Good catch. Do you want to make a PR to fix that and I'll merge it, or would you prefer one of us do it? |
Sorry if I missed something in the documentation: Thankful for pointers!
During presentations I often switch between dark and light themes in the terminal (gnome-terminal, urxvt, kitty).
The default theme is optimized for dark background colors.
Can we have a command line option to use a theme optimized for light colored background?
The text was updated successfully, but these errors were encountered: