Add configuration for bat

This commit is contained in:
Alexander Hess 2026-08-03 02:57:48 +02:00
commit fbc2e0695a
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
4 changed files with 40 additions and 0 deletions

5
.config/bat/README.md Normal file
View file

@ -0,0 +1,5 @@
# `bat`-related Configurations
This folder contains
the [config](./config) for [`bat`](https://github.com/sharkdp/bat),
found via `$BAT_CONFIG_PATH` set in [`~/.config/shell/env`](../shell/env).

17
.config/bat/config Normal file
View file

@ -0,0 +1,17 @@
--theme="ansi"
# See `$LESS` in ~/.config/shell/env
--pager="less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --quit-if-one-screen --RAW-CONTROL-CHARS --status-column"
--style="numbers,changes,header"
# Unrecognized mappings
--map-syntax ".bash_history:Bourne Again Shell (bash)"
--map-syntax "**/bash/history:Bourne Again Shell (bash)"
--map-syntax "**/zsh/history:Bourne Again Shell (bash)"
--map-syntax ".flake8:INI"
--map-syntax "poetry.lock:TOML"