This directory contains my bat setup — a modern replacement for cat with syntax highlighting, themes, and git integration.
The configuration is managed using GNU Stow to keep dotfiles modular and easy to maintain.
bat/
├── .config/
│ └── bat/
│ ├── config # Main configuration
│ └── themes/ # Custom themes
│ └── Vague.tmTheme
Defines bat’s behavior — theme selection, style options, and paging rules.
Contains custom themes for bat. Here, I use Vague.tmTheme, a soft and minimal theme that gives bat an elegant highlighting style.
From your dotfiles root directory (e.g. ~/Dotfiles):
stow batThis creates symlinks in your home directory as:
~/.config/bat -> Dotfiles/bat/.config/bat
To remove the symlink:
stow -D batTo enable the custom theme:
-
Place your
.tmThemeinside:~/.config/bat/themes/ -
Rebuild bat’s theme cache:
bat cache --build
-
Set it in
config:--theme="Vague"
If you update or replace a theme, bat may still use the old cached version. To fix this, clear the theme cache and rebuild it:
bat cache --clear
bat cache --buildThis ensures bat loads the latest version of your custom theme.
Once configured, bat automatically loads the custom theme and applies it whenever you run:
bat file.txt