Finished harmonizing both roles and updated Readme
This commit is contained in:
@ -3,12 +3,13 @@
|
|||||||
# not present.
|
# not present.
|
||||||
- name: "OMZ | export vars to .zshrc if required."
|
- name: "OMZ | export vars to .zshrc if required."
|
||||||
blockinfile:
|
blockinfile:
|
||||||
dest: "{{ omz_user_zshrc_path }}"
|
dest: "{{ item.ansible_facts.user_home }}/.zshrc"
|
||||||
block: "{{ omz_user.settings }}"
|
block: "{{ omz_custom_settings }}"
|
||||||
backup: "{{ omz_zshrc_backup }}"
|
backup: "{{ omz_zshrc_backup }}"
|
||||||
when:
|
when:
|
||||||
- "omz_user.settings is defined"
|
- "omz_custom_settings is defined"
|
||||||
# Don't flag this line for checking if the value is empty--checking for an
|
# Don't flag this line for checking if the value is empty--checking for an
|
||||||
# empty value makes perfect sense.
|
# empty value makes perfect sense.
|
||||||
- "omz_user.settings != ''" # noqa 602
|
- "omz_custom_settings != ''" # noqa 602
|
||||||
- "not omz_zshrc_create"
|
- "not omz_zshrc_create"
|
||||||
|
with_items: "{{ paths.results }}"
|
@ -21,8 +21,3 @@
|
|||||||
shell: "command -v zsh"
|
shell: "command -v zsh"
|
||||||
register: omz_zsh_installed_path
|
register: omz_zsh_installed_path
|
||||||
changed_when: "false"
|
changed_when: "false"
|
||||||
|
|
||||||
- name: "OMZ | get user shell to zsh."
|
|
||||||
user:
|
|
||||||
name: "{{ omz_user.name }}"
|
|
||||||
shell: "{{ omz_zsh_installed_path.stdout }}"
|
|
||||||
|
@ -86,7 +86,7 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
{% if omz_user.settings is defined %}
|
{% if omz_custom_settings is defined %}
|
||||||
# Custom settings
|
# Custom settings
|
||||||
{{ omz_user.settings }}
|
{{ omz_custom_settings }}
|
||||||
{% endif %}
|
{% endif %}
|
Reference in New Issue
Block a user