Add P10k installation / configuration
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
---
|
||||
- name: Include OS specific variables.
|
||||
ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- "{{ ansible_system }}.yml"
|
||||
- other-os.yml
|
||||
paths:
|
||||
- 'vars'
|
||||
|
||||
# Make sure zsh is installed and set to the user's default shell.
|
||||
- name: "OMZ | include zsh.yml tasks."
|
||||
include_tasks: "zsh.yml"
|
||||
@@ -24,7 +35,7 @@
|
||||
- "configure"
|
||||
- "configureohmyzsh"
|
||||
|
||||
# Finally, add exports etc to .zshrc /last/ (i.e. so they get added to whaterver
|
||||
# Add exports etc to .zshrc /last/ (i.e. so they get added to whaterver
|
||||
# .zshrc exists.
|
||||
- name: "OMZ | include zsh-zshrc.yml tasks."
|
||||
include_tasks: zsh-zshrc.yml
|
||||
@@ -32,3 +43,17 @@
|
||||
- "zsh"
|
||||
- "configure"
|
||||
- "configurezsh"
|
||||
|
||||
# install and configure PowerLevel10k
|
||||
|
||||
- name: Include p10k prompt style variables.
|
||||
ansible.builtin.include_vars: "{{ p10k_style[p10k_prompt_style] }}.yml"
|
||||
|
||||
- name: Install p10k
|
||||
ansible.builtin.include_tasks: "p10k-install.yml"
|
||||
|
||||
- name: Install p10k recommanded fonts
|
||||
ansible.builtin.include_tasks: "p10k-fonts.yml"
|
||||
|
||||
- name: Configure p10k
|
||||
ansible.builtin.include_tasks: "p10k-configure.yml"
|
||||
Reference in New Issue
Block a user