-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh-setup.yml
36 lines (30 loc) · 994 Bytes
/
zsh-setup.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
- name: "My Zsh shiet !"
community.general.pacman:
name:
- zsh
- ruby
state: present
- name: "Change default shell to ZSH"
become: yes
user:
name: "{{ ansible_user }}"
shell: /bin/zsh
- name: "Check that the somefile.conf exists"
stat:
path: /home/spuxy/.oh-my-zsh
register: oh_my_stats
- name: "Cloning an repo - Oh-My-Zsh"
shell: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh > ~/.oh-my-installer && chmod +x ~/.oh-my-installer && ~/.oh-my-installer
when: oh_my_stats.stat.exists == False
become_user: "{{ ansible_user }}"
- name: "Cloning an repo - colorls"
gem:
name: colorls
state: present
# - name: Ruby setup
# environment:
# PATH: /home/spuxy/.local/share/gem/ruby/3.0.0/bin:{{ lookup('env','PATH') }}
- name: "[PLUGIN] - zsh-autosuggestions"
ansible.builtin.git:
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
dest: "~/.oh-my-zsh/plugins/zsh-autosuggestions"