-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_zsh_user.yml
45 lines (39 loc) · 1.29 KB
/
install_zsh_user.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- name: Clone Oh My Zsh repository
git:
repo: https://github.com/ohmyzsh/ohmyzsh.git
dest: "~/.oh-my-zsh"
version: master
update: yes
become_user: "{{ current_user.username }}"
- name: Create .zshrc file
template:
src: "files/{{ current_user.username }}_zshrc.j2"
dest: "~/.zshrc"
owner: "{{ current_user.username }}"
mode: 0644
become_user: "{{ current_user.username }}"
- name: Install fzf-zsh-plugin
git:
repo: https://github.com/unixorn/fzf-zsh-plugin.git
dest: "~/.oh-my-zsh/custom/plugins/fzf-zsh-plugin"
update: yes
become_user: "{{ current_user.username }}"
- name: Install zsh-z
git:
repo: https://github.com/agkozak/zsh-z.git
dest: "~/.oh-my-zsh/custom/plugins/zsh-z"
update: yes
become_user: "{{ current_user.username }}"
- name: Install zsh-syntax-highlighting
git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: "~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
update: yes
become_user: "{{ current_user.username }}"
- name: Clone zsh-autosuggestions repository
git:
repo: https://github.com/zsh-users/zsh-autosuggestions
dest: "~/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
update: yes
- name: Change shell
command: chsh -s /usr/bin/zsh "{{ current_user.username }}"