Catppuccin for bat
View on GitHubAdding the themes
- Clone this repository.
- First create a theme folder in bat's configuration directory by running:
mkdir -p "$(bat --config-dir)/themes" - Copy all the
.tmThemefiles from the cloned folder to bat's theme folder:cp *.tmTheme "$(bat --config-dir)/themes" - Rebuild bat's cache:
bat cache --build - Run
bat --list-themesand check if all the 4 theme flavours are present in the list.
Usage
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:
💝 Thanks to