You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--theme auto results in the fallback to the default theme #3641
When terminal is dark (also, org.gnome.desktop.interface color-scheme is prefer-dark), I would expect bat to respect the BAT_THEME=auto as per manual. So when the terminal is dark it should be:
And when the terminal is light:
How did you install bat?
GitHub release.
bat version and environment
bat 0.25.0
bat has been built without the 'bugreport' feature. The '--diagnostic' option is not available.
Note these don't show up in bat --diagnostic despite being in my environment. (Putting --theme-dark=... etc. in my config file doesn't change the behavior shown below.)
I'm having exactly this problem with bat 0.26.1 installed via homebrew
Note these don't show up in bat --diagnostic despite being in my environment.
@hdp I have merged #3661 which should fix the bat --diagnostic issue, and also adds some terminal color scheme debug info, so if you would be willing to build/install from source, it may give us some clues as to what is going wrong.
TERM=tmux-256color
Most likely your issue is due to running under tmux. #3207 (comment)
Activity
keith-hall commentedon Mar 22, 2026
The release notes for
batv0.26 mention that this bug was fixed in that version - probably you just need to upgrade 🙂hdp commentedon Mar 31, 2026
I'm having exactly this problem with bat 0.26.1 installed via homebrew
Note these don't show up in
bat --diagnosticdespite being in my environment. (Putting--theme-dark=...etc. in my config file doesn't change the behavior shown below.)Running
cat foo.py:Got:

Expected:

(I have to run
cat --theme 'Kanagawa Wave' foo.pyto get this result)keith-hall commentedon Apr 3, 2026
@hdp I have merged #3661 which should fix the
bat --diagnosticissue, and also adds some terminal color scheme debug info, so if you would be willing to build/install from source, it may give us some clues as to what is going wrong.Most likely your issue is due to running under tmux.
#3207 (comment)