This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/roles/dircolors-wsl/tasks/main.yaml
2020-09-14 11:01:16 +02:00

16 lines
518 B
YAML

---
- name: clone dircolors repo
become_user: "{{ account.name }}"
git:
repo: git@github.com:seebi/dircolors-solarized.git
dest: "/home/{{ account.name }}/.dircolors-solarized"
accept_hostkey: yes
update: yes
- name: enable dircolors
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.zshrc"
regexp: "eval `dircolors"
line: "[ -f ~/.dircolors-solarized/dircolors.256dark ] && eval `dircolors ~/.dircolors-solarized/dircolors.256dark`"