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:
parent
c83b93a64f
commit
f6026af54d
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- name: Check for oh-my-zsh
|
||||||
|
stat:
|
||||||
|
path: ~/.oh-my-zsh
|
||||||
|
register: ohmyzsh_directory
|
||||||
|
|
||||||
- name: Install oh-my-zsh
|
- name: Install oh-my-zsh
|
||||||
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
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
|
- name: Clone zsh-autosuggestions
|
||||||
git:
|
git:
|
||||||
|
@ -13,7 +19,7 @@
|
||||||
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||||
|
|
||||||
- name: Clone starship
|
- 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
|
- name: Create zshrc
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue