Catppuccin for bat

View on GitHub

Adding the themes

  1. Clone this repository.
  2. First create a theme folder in bat's configuration directory by running:
    mkdir -p "$(bat --config-dir)/themes"
    
  3. Copy all the .tmTheme files from the cloned folder to bat's theme folder:
    cp *.tmTheme "$(bat --config-dir)/themes"
    
  4. Rebuild bat's cache:
    bat cache --build
    
  5. Run bat --list-themes and check if all the 4 theme flavours are present in the list.

Usage

There are two ways to get the theme working.

  1. Add the following to bat's configuration file:
    --theme="Catppuccin-mocha"
    
  2. Using the BAT_THEME environmental 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.

💝 Thanks to