first commit

This commit is contained in:
2025-01-09 16:02:22 +01:00
commit 045447757f
11 changed files with 415 additions and 0 deletions

14
tasks/zsh-zshrc.yml Normal file
View File

@@ -0,0 +1,14 @@
---
# Note that we assume this file exists! lineinfile will fail if the file is
# not present.
- name: "OMZ | export vars to .zshrc if required."
blockinfile:
dest: "{{ omz_user_zshrc_path }}"
block: "{{ omz_user.settings }}"
backup: "{{ omz_zshrc_backup }}"
when:
- "omz_user.settings is defined"
# Don't flag this line for checking if the value is empty--checking for an
# empty value makes perfect sense.
- "omz_user.settings != ''" # noqa 602
- "not omz_zshrc_create"