Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
petemounce committed Jun 4, 2024
1 parent b974132 commit 7d16292
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/zsh/tasks/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- name: install
include_tasks: bat-install.{{ ansible_os_family }}.yml

- name: Install themes for bat
ansible.builtin.command: "bat cache --build"
changed_when: false

# https://github.com/junegunn/fzf#preview-window
- name: fzf preview with bat
lineinfile:
Expand Down
12 changes: 12 additions & 0 deletions roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,15 @@

- name: terminal
import_tasks: terminal.yml

- name: Refresh zcompdump
block:
- name: Delete zcompdump
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.zcompdump"
state: absent
- name: Generate zcompdump
ansible.builtin.shell: autoload -Uz compinit && compinit
args:
executable: "/bin/zsh"
creates: "{{ ansible_user_dir }}/.zcompdump"

0 comments on commit 7d16292

Please sign in to comment.