Fix oh-my-zsh and starship

- Install oh-my-zsh only if not present
- Install starship as unattended

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-11 20:34:38 +02:00
parent c83b93a64f
commit f6026af54d
No known key found for this signature in database
GPG key ID: 8535F3BCF69B3D69

View file

@ -1,6 +1,12 @@
---
- name: Check for oh-my-zsh
stat:
path: ~/.oh-my-zsh
register: ohmyzsh_directory
- name: Install oh-my-zsh
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
when: not ohmyzsh_directory.stat.exists
- name: Clone zsh-autosuggestions
git:
@ -13,7 +19,7 @@
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
- name: Clone starship
shell: curl -fsSL https://starship.rs/install.sh | bash
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)" "" -f
- name: Create zshrc
template: