A calming, tasteful theme for the [`bat`](https://github.com/sharkdp/bat) syntax-highlighting pager, based on the delightful [Rose Pine](https://rosepinetheme.com) palette.
This repository provides a single Sublime Text .tmTheme file: Rose-Pine.tmTheme.
mkdir -p ~/.config/bat/themes
cd ~/.config/bat/themes
# Clone (or copy) the single theme file
curl -O https://raw.githubusercontent.com/aaron/rose-pine-bat/main/Rose-Pine.tmTheme
# (Alternatively: git clone this repository and copy Rose-Pine.tmTheme here)
# Rebuild bat's theme cache
bat cache --buildIf you have this repository locally:
mkdir -p ~/.config/bat/themes
cp Rose-Pine.tmTheme ~/.config/bat/themes/
bat cache --buildOn the command line (one-off):
bat --theme "Rose-Pine" README.mdPersist via environment variable:
export BAT_THEME="Rose-Pine"Add that line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to keep it.
Or add to ~/.config/bat/config:
--theme=Rose-Pine
List available themes:
bat --list-themes | grep -i roseYou should see Rose-Pine.
Repeat the installation copy/curl step and run:
bat cache --clear
bat cache --buildbatconsumes Sublime Text.tmTheme(XML) definitions; this file maps Rose Pine palette colors to common scopes.- If future palette adjustments occur upstream, update the hex values accordingly.
Feel free to open issues or PRs to refine scope mappings (e.g. adjusting punctuation, diff colors, or diagnostics).
Rose Pine palette and name are © Rose Pine authors. This theme file follows the upstream license conventions; see Rose Pine project for details. The bat utility is © sharkdp and contributors.
