- [ "docsets", "path", "{{ lookup('env', 'XDG_DATA_HOME') }}/Zeal/Zeal/docsets" ]
- [ "search", "fuzzy_search_enabled", "false" ]
- [ "tabs", "open_new_tab_after_active", "false" ]
+- name: Zeal docsets
+ block:
+ - name: Check missing Zeal docsets
+ register: zeal_missing_docsets
+ shell: "for i in {{ zeal_roles | join(' ') }}; do [ -d $XDG_DATA_HOME/Zeal/Zeal/docsets/$i.docset ] || echo $i; done"
+ changed_when: zeal_missing_docsets.stdout != ""
+ check_mode: no
+ - name: Ask for Zeal docsets
+ when: zeal_missing_docsets.stdout != ""
+ pause:
+ prompt: "install Zeal docsets ? [y/N]"
+ register: zeal_install_docsets
+ check_mode: no
+ - name: Zeal docsets
+ when: zeal_missing_docsets.stdout != "" and zeal_install_docsets.user_input.startswith("y")
+ shell: "dasht-docsets-install {{ item }}"
+ args:
+ creates: "$XDG_DATA_HOME/Zeal/Zeal/docsets/{{ item }}.docset"
+ loop: "{{ zeal_missing_docsets.stdout.split('\n') }}"
- name: Create pm2 config dir
file:
path: $XDG_CONFIG_HOME/pm2
# TMUX
TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}"
+# Zeal
+DASHT_DOCSETS_DIR DEFAULT="${XDG_DATA_HOME}/Zeal/Zeal/docsets/"
+
# node_modules/pm2/paths.js
PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2"
PM2_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js"