From 5b30c7acc7919660e73932ab205c36344cfa73ae Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 13 Jun 2026 18:20:40 +0200 Subject: [PATCH] Support zsh as well --- tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 34be836..6a760fc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,9 +11,9 @@ owner: "{{ ansible_user }}" mode: "0644" -- name: Ensure tmux is used as default shell +- name: Auto-start tmux for interactive shells ansible.builtin.blockinfile: - path: /root/.bashrc + path: "{{ item }}" block: | case $- in *i*) @@ -25,3 +25,6 @@ ;; esac marker: "# {mark} ANSIBLE TMUX CONFIG" + loop: + - /root/.bashrc + - /root/.zshrc