<commit_before>---
- name: install stow to manage symlinks
  pacman:
    name: stow

- name: check if dotfiles exist
  stat:
    path: "${HOME}/dotfiles"
  become_user: "{{ user.name }}"
  register: dotfiles_dir

- name: clone dotfiles
  command: "git clone {{ dotfiles.repo }} ${HOME}/dotfiles"
  become_user: "{{ user.name }}"
  when: not dotfiles_dir.stat.exists

- name: install dotfiles dependencies
  pacman:
    name: "{{ dotfiles.deps }}"

- name: cleanup OhMyZsh from previous installation
  file:
    path: "${HOME}/.oh-my-zsh/"
    state: absent
  become_user: "{{ user.name }}"

- name: install OhMyZsh
  shell: sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  become_user: "{{ user.name }}"

- name: install Zsh theme powerlevel10k
  command: "git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${HOME}/.oh-my-zsh/custom/themes/powerlevel10k"
  become_user: "{{ user.name }}"

- name: install Zsh plugin zsh-lazyload
  command: "git clone https://github.com/qoomon/zsh-lazyload ${HOME}/.oh-my-zsh/custom/plugins/zsh-lazyload"
  become_user: "{{ user.name }}"

- name: cleanup default Zsh config
  file:
    path: "${HOME}/.zshrc"
    state: absent
  become_user: "{{ user.name }}"<commit_msg>Install tmux plugin manager in dotfiles role<commit_after>---
- name: install stow to manage symlinks
  pacman:
    name: stow

- name: check if dotfiles exist
  stat:
    path: "${HOME}/dotfiles"
  become_user: "{{ user.name }}"
  register: dotfiles_dir

- name: clone dotfiles
  command: "git clone {{ dotfiles.repo }} ${HOME}/dotfiles"
  become_user: "{{ user.name }}"
  when: not dotfiles_dir.stat.exists

- name: install dotfiles dependencies
  pacman:
    name: "{{ dotfiles.deps }}"

- name: install tmux plugin manager
  command: "git clone https://github.com/tmux-plugins/tpm ${HOME}/.tmux/plugins/tpm"
  become_user: "{{ user.name }}"

- name: cleanup OhMyZsh from previous installation
  file:
    path: "${HOME}/.oh-my-zsh/"
    state: absent
  become_user: "{{ user.name }}"

- name: install OhMyZsh
  shell: sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  become_user: "{{ user.name }}"

- name: install Zsh theme powerlevel10k
  command: "git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${HOME}/.oh-my-zsh/custom/themes/powerlevel10k"
  become_user: "{{ user.name }}"

- name: install Zsh plugin zsh-lazyload
  command: "git clone https://github.com/qoomon/zsh-lazyload ${HOME}/.oh-my-zsh/custom/plugins/zsh-lazyload"
  become_user: "{{ user.name }}"

- name: cleanup default Zsh config
  file:
    path: "${HOME}/.zshrc"
    state: absent
  become_user: "{{ user.name }}"
{'fraction_non_alphanumeric': 0.15962962962962962, 'fraction_numerical': 0.005185185185185185, 'mean_word_length': 3.5857385398981325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '5975945', 'n_tokens_mistral': 990, 'n_tokens_neox': 1000, 'n_words': 224}