Automatically adding alias for dotfiles command

This commit is contained in:
Ivan Golikov 2024-12-09 23:53:02 +01:00
parent e1bbb611da
commit c53fb57ff0

View file

@ -25,3 +25,9 @@
state: present
become: true
when: ansible_facts['os_family'] == "Archlinux"
- name: Ensure dotfiles alias exists in .zshrc
ansible.builtin.lineinfile:
path: "{{ ansible_env.HOME }}/.zshrc"
line: "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'"
create: yes