-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoh-my-zsh.yml
21 lines (21 loc) · 902 Bytes
/
oh-my-zsh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Register Oh My Zsh installation status
shell: ls ~/.oh-my-zsh
failed_when: false
register: ohmyzsh_installed
- name: Install Oh My Zsh
shell: git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
when: ohmyzsh_installed.stdout == ""
- name: Update Oh My Zsh
shell: git -C ~/.oh-my-zsh pull
when: ohmyzsh_installed.stdout != ""
- name: Register zsh-autosuggestions installation status
shell: ls ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
failed_when: false
register: zshautosuggestions_installed
- name: Install zsh-autosuggestions
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
when: zshautosuggestions_installed.stdout == ""
- name: Update zsh-autosuggestions
shell: git -C ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions pull
when: zshautosuggestions_installed.stdout != ""