Skip to content

Commit b2c6782

Browse files
committedSep 22, 2024
adjust zsh playbook
1 parent f311309 commit b2c6782

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed
 

‎ansible/playbooks/zsh.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,34 +49,41 @@
4949
shell: |
5050
RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
5151
environment:
52-
HOME: "/home/mafyuh"
52+
HOME: "/home/{{ user }}"
5353
args:
54-
chdir: "/home/mafyuh"
55-
creates: "/home/mafyuh/.oh-my-zsh"
54+
chdir: "/home/{{ user }}"
55+
creates: "/home/{{ user }}/.oh-my-zsh"
56+
57+
- name: Ensure custom plugins directory exists
58+
file:
59+
path: "{{ zsh_custom }}/plugins"
60+
state: directory
61+
owner: "{{ user }}"
62+
group: "{{ user }}"
5663

5764
- name: Clone zsh-syntax-highlighting plugin
5865
git:
5966
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
6067
dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting"
61-
update: no
68+
update: yes
6269

6370
- name: Clone zsh-autosuggestions plugin
6471
git:
6572
repo: https://github.com/zsh-users/zsh-autosuggestions.git
6673
dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions"
67-
update: no
74+
update: yes
6875

6976
- name: Clone zsh-history-substring-search plugin
7077
git:
7178
repo: https://github.com/zsh-users/zsh-history-substring-search.git
7279
dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search"
73-
update: no
80+
update: yes
7481

75-
- name: Clone zsh-you-should-use plugin
82+
- name: Clone you-should-use plugin
7683
git:
7784
repo: https://github.com/MichaelAquilina/zsh-you-should-use.git
7885
dest: "{{ zsh_custom }}/plugins/you-should-use"
79-
update: no
86+
update: yes
8087

8188
- name: Ensure .local/bin directory exists
8289
file:

0 commit comments

Comments
 (0)
Please sign in to comment.