
Catppuccin for Bat
- First create a theme folder in bat's configuration directory by running:
mkdir -p "$(bat --config-dir)/themes" - Copy the
.tmThemefiles to bat's theme folder:
-
Latte
wget -P "$(bat --config-dir)/themes" https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-latte.tmTheme -
Frappe
wget -P "$(bat --config-dir)/themes" https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-frappe.tmTheme -
Macchiato
wget -P "$(bat --config-dir)/themes" https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-macchiato.tmTheme -
Mocha
wget -P "$(bat --config-dir)/themes" https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-mocha.tmTheme
- Rebuild bat's cache:
bat cache --build
- And check if all the 4 theme flavours are present in the list.
bat --list-themes
There are two ways to get the theme working.
- Add the following to bat's configuration file:
--theme="Catppuccin-mocha" - Using the
BAT_THEMEenvironmental variable:- Export the environmental variable inside your shell's configuration file:
BAT_THEME="Catppuccin-mocha". The method to export the variable depends on your shell.
- Export the environmental variable inside your shell's configuration file:
Copyright © 2021-present Catppuccin Org