This commit is contained in:
2023-07-04 08:48:50 -05:00
parent a94a72d102
commit 8ec6063d6f

View File

@@ -75,11 +75,17 @@
become_user: user
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
when: not auto_suggestions_result.stat.exists
- name: check if zshrc file was moved
become_user: user
stat:
path: ~/.zshrc.pre-oh-my-zsh
register: zshrc
- name: Restore zshrc file
become_user: user
shell: rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
ignore_errors: true
when: zshrc.stat.exists == true
- user:
name: "user"