From 36b88a4fd7d63574665de5bd162acf360efa2b64 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 31 Oct 2021 08:34:38 +0200 Subject: [PATCH] Fixed oh-my-zsh import in .zshrc --- playbooks/roles/base/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/roles/base/tasks/main.yml b/playbooks/roles/base/tasks/main.yml index e0d2a4d..69efbf7 100644 --- a/playbooks/roles/base/tasks/main.yml +++ b/playbooks/roles/base/tasks/main.yml @@ -41,6 +41,13 @@ dest: ~/.zshrc force: yes +- name: Fix oh-my-zsh sourcing + ansible.builtin.lineinfile: + path: "~/.zshrc" + regexp: "^export ZSH=" + line: 'export ZSH="/home/{{running_user}}/.oh-my-zsh"' + + - name: Verifying shell config folder file: path: ~/.shellconfig