Skip to content
otheme

bat

The bat target authors a syntax theme (otheme-<theme-id>.tmTheme) from the shared palette, installs it into bat, and makes it the active bat theme. This is also the theme git-delta references for diff syntax highlighting.

This page is generated from the adapter plan used by otheme set vesper --dry-run. Paths are shown exactly as otheme prints them; ~ means your home directory.

Compatibility

Author mode. otheme writes a TextMate .tmTheme derived from the shared palette into bat's themes directory, points bat's config at it via --theme, and rebuilds the bat theme cache.

Files

OrderFileWhat otheme writes
1~/.config/bat/themes/otheme-vesper.tmThemewrite generated bat theme otheme-vesper.tmTheme from the palette
2~/.config/bat/configset --theme="otheme-vesper"

Why bat and git-delta go together

git-delta delegates syntax highlighting to bat. The bat target is what authors the otheme-<theme-id> syntax theme that git-delta references via syntax-theme. If you enable git-delta, enable bat too so the referenced theme exists:

{
  "targets": {
    "bat": true,
    "git-delta": true
  }
}

Commands

OrderCommandWhy it runs
1bat cache --buildrebuild the bat theme cache so the generated theme becomes available