From 8ec6063d6fe8235303b602a4e3a8921eab7976d3 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Tue, 4 Jul 2023 08:48:50 -0500 Subject: [PATCH] update --- roles/customize/tasks/defaults.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/customize/tasks/defaults.yml b/roles/customize/tasks/defaults.yml index cdeef45..55f0499 100644 --- a/roles/customize/tasks/defaults.yml +++ b/roles/customize/tasks/defaults.yml @@ -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"