2020-10-11 15:09:15 +02:00
|
|
|
---
|
2020-10-11 20:34:38 +02:00
|
|
|
- name: Check for oh-my-zsh
|
|
|
|
stat:
|
|
|
|
path: ~/.oh-my-zsh
|
|
|
|
register: ohmyzsh_directory
|
|
|
|
|
2020-10-11 15:09:15 +02:00
|
|
|
- name: Install oh-my-zsh
|
|
|
|
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
2020-10-11 20:34:38 +02:00
|
|
|
when: not ohmyzsh_directory.stat.exists
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
- name: Clone zsh-autosuggestions
|
2020-10-11 18:40:02 +02:00
|
|
|
git:
|
|
|
|
repo: https://github.com/zsh-users/zsh-autosuggestions
|
|
|
|
dest: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
- name: Clone zsh-syntax-highlighting
|
2020-10-11 18:40:02 +02:00
|
|
|
git:
|
|
|
|
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
|
|
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
- name: Clone starship
|
2021-01-25 19:27:01 +01:00
|
|
|
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)" "" -f -b $HOME/.local/bin
|
2020-10-11 15:09:15 +02:00
|
|
|
|
|
|
|
- name: Create zshrc
|
|
|
|
template:
|
|
|
|
src: templates/zshrc.j2
|
|
|
|
dest: ~/.zshrc
|
|
|
|
|
|
|
|
- name: Create starship configuration
|
|
|
|
template:
|
|
|
|
src: templates/starship.toml.j2
|
|
|
|
dest: ~/.config/starship.toml
|