add catppuccin bat themes
Some checks failed
/ run ansible (push) Has been cancelled

This commit is contained in:
Gabriel Augendre 2025-03-12 23:59:16 +01:00
parent 44f4fd1c4c
commit 7d3c9dcad4

View file

@ -13,3 +13,29 @@
src: /usr/bin/batcat
dest: /home/gaugendre/.local/bin/bat
state: link
- name: Get bat config dir
ansible.builtin.command: /usr/bin/batcat --config-dir
register: confdir
changed_when: false
check_mode: false
- name: Create bat themes dir
ansible.builtin.file:
path: "{{ confdir.stdout }}/themes"
state: directory
mode: "0775"
- name: Download Catppuccin themes
ansible.builtin.get_url:
url: https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20{{ item }}.tmTheme
dest: "{{ confdir.stdout }}/themes/Catppuccin {{ item }}.tmTheme"
mode: "0664"
notify:
- Rebuild bat theme cache
loop:
- Latte
- Mocha
- Macchiato
- Frappe
handlers:
- name: Rebuild bat theme cache
ansible.builtin.command: /usr/bin/batcat cache --build
changed_when: true