Automatically adding alias for dotfiles command
This commit is contained in:
parent
e1bbb611da
commit
c53fb57ff0
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue