mirror of
https://github.com/Crocmagnon/ansible.git
synced 2025-03-14 21:44:03 +01:00
This commit is contained in:
parent
44f4fd1c4c
commit
7d3c9dcad4
1 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue