Support zsh as well
This commit is contained in:
parent
c46d214037
commit
5b30c7acc7
@ -11,9 +11,9 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Ensure tmux is used as default shell
|
- name: Auto-start tmux for interactive shells
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /root/.bashrc
|
path: "{{ item }}"
|
||||||
block: |
|
block: |
|
||||||
case $- in
|
case $- in
|
||||||
*i*)
|
*i*)
|
||||||
@ -25,3 +25,6 @@
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
marker: "# {mark} ANSIBLE TMUX CONFIG"
|
marker: "# {mark} ANSIBLE TMUX CONFIG"
|
||||||
|
loop:
|
||||||
|
- /root/.bashrc
|
||||||
|
- /root/.zshrc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user