- Clone this repository.
- First create a theme folder in bat's configuration directory by running:
mkdir -p "$(bat --config-dir)/themes"
- Copy all the
.tmTheme
files 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-themes
and check if all the 4 theme flavours are present in the list.
There are two ways to get the theme working.
- Add the following to bat's configuration file:
--theme="dark-decay"
- Using the
BAT_THEME
environmental variable:- Export the environmental variable inside your shell's configuration file:
BAT_THEME="dark-decay"
. The method to export the variable depends on your shell.
- Export the environmental variable inside your shell's configuration file: