dotfiles/roles/shell_zsh/tasks/install.yml
Matej Focko a6d99338d6
fix(shell_zsh): enable eza repository on apt-based
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-29 17:55:29 +01:00

50 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install zsh
ansible.builtin.package:
name:
- zsh
- autojump
state: present
become: true
- name: Enable eza apt repository
ansible.builtin.deb822_repository:
name: eza
types: deb
uris: http://deb.gierens.de
suites: stable
components:
- main
signed_by: https://raw.githubusercontent.com/eza-community/eza/main/deb.asc
state: present
become: true
when: ansible_distribution in [ "Debian", "Ubuntu" ]
- name: Install eza and bat
ansible.builtin.package:
name:
- eza
- bat
state: present
become: true
- name: Install fzf for fuzzy finding
ansible.builtin.package:
name: fzf
state: present
become: true
- name: Install zoxide for jumping around
ansible.builtin.package:
name: zoxide
state: present
become: true
when: ansible_distribution not in [ "openSUSE Leap" ]
# “yet another dialog” for the functions in zshrc
- name: Install yad for prompts from shell
ansible.builtin.package:
name: yad
state: present
become: true
when: 'ansible_distribution not in [ "AlmaLinux", "Rocky" ] and "openSUSE" not in ansible_distribution'