oh-my-zsh/tasks/install-powerlevel10k.yml

28 lines
908 B
YAML
Raw Normal View History

2022-05-02 10:33:16 +02:00
---
- name: clone powerlevel10k
git:
repo: "{{ template_powerlevel10k_repo }}"
dest: "{{ oh_my_zsh_install_folder }}/custom/themes/powerlevel10k"
depth: 1
- name: enable powerlevel in template
lineinfile:
path: "{{ oh_my_zsh_install_folder }}/.zshrc"
regex: "^ZSH_THEME="
line: 'ZSH_THEME="powerlevel10k/powerlevel10k"'
- name: enable powerlevel in template
lineinfile:
path: "{{ oh_my_zsh_install_folder }}/.zshrc"
line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh'
- name: enable powerlevel in skel
lineinfile:
path: "/etc/skel/.zshrc"
regex: "^ZSH_THEME="
line: 'ZSH_THEME="powerlevel10k/powerlevel10k"'
- name: enable powerlevel in template
lineinfile:
path: "/etc/skel/.zshrc"
line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh'
- name: copy config to skel
copy:
src: "{{ role_path }}/files/.p10k.zsh"
dest: "/etc/skel/.p10k.zsh"