Skip to content

Systemwide config is not respected for theme for manpage #3259

Open
@rieje

Description

@rieje

What steps will reproduce the bug?

  1. Systemwide config file at /etc/bat/config has contents:
    --theme="Solarized (dark)". No user config at ~/.config/bat/config.
  2. Open terminal instance, this theme is not applied for man ls . However, theme does apply for bat ~/bin/script.
  3. Create ~/.config/bat/config with same contents as /etc/bat/config. man ls now also shows theme applying to man page.
    ...

What did you expect to happen instead?

Systemwide config should be respected and its settings take effect as long as there are no settings in user config that override it (in my case, I didn't even have user config)
...

How did you install bat?

Arch Linux, pacman -Syu.

bat version and environment

bat 0.25.0 (v0.25.0-modified) on zsh.


Unrelated: Do all themes support man page highlighting? I installed tokyonight theme but it doesn't change man page highlighting--only when paging and other normal usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions