<commit_before>{% set user = grains['user'] %}
{% set home = grains['userhome'] %}
{% set location = home + "/.zprezto" %}

prezto:
  github.latest:
    - name: sorin-ionescu/prezto
    - target: {{location}}
    - submodules: True

  cmd.run:
    - name: |
        cd {{location}}
        git submodule update --init --recursive
    - unless: [[ -e "{{location}}/modules/prompt/external/agnoster" ]]


{%
  set files = [
    'zlogin', 'zlogout', 'zpreztorc', 'zprofile', 'zshrc', 'zshenv'
  ]
%}
{% for filename in files %}
{{home}}/.{{filename}}:
  file.symlink:
    - target: {{location}}/runcoms/{{filename}}
{% endfor %}<commit_msg>Doesn't update prezto by default<commit_after>{% set user = grains['user'] %}
{% set home = grains['userhome'] %}
{% set location = home + "/.zprezto" %}

prezto:
  github.latest:
    - name: sorin-ionescu/prezto
    - target: {{location}}
    - submodules: True
    - unless: test -d {{location}}/.git


{%
  set files = [
    'zlogin', 'zlogout', 'zpreztorc', 'zprofile', 'zshrc', 'zshenv'
  ]
%}
{% for filename in files %}
{{home}}/.{{filename}}:
  file.symlink:
    - target: {{location}}/runcoms/{{filename}}
{% endfor %}
{'fraction_non_alphanumeric': 0.211340206185567, 'fraction_numerical': 0.0, 'mean_word_length': 3.1906474820143886, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '177632', 'n_tokens_mistral': 457, 'n_tokens_neox': 423, 'n_words': 92}