Bat switch theme

Time:2020-3-25

bat https://github.com/sharkdp/bat
With syntax highlighting and git integratedcat

As you can see from the figure belowbatThe default theme of normal text and some variable fonts are white, which can’t be seen clearly in case of white terminal background
Usebat --list-themesView topic list

bat --list-themes

Bat switch theme

Add theme environment variable

If it isbash:
stay~/.bashrcAdd inexport BAT_THEME="GitHub"
Bat switch theme

If it isfish shell:
stay~/.config/fish/config.fishAdd inset -x BAT_THEME GitHub
Bat switch theme