From 57d777475c80a51caedb1db444635736cc09ee73 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 14 Sep 2020 11:01:16 +0200 Subject: [PATCH] Set solarized dircolors --- roles/dircolors-wsl/tasks/main.yaml | 15 +++++++++++++++ wsl-debian.yaml | 1 + 2 files changed, 16 insertions(+) create mode 100644 roles/dircolors-wsl/tasks/main.yaml diff --git a/roles/dircolors-wsl/tasks/main.yaml b/roles/dircolors-wsl/tasks/main.yaml new file mode 100644 index 0000000..93d7e1b --- /dev/null +++ b/roles/dircolors-wsl/tasks/main.yaml @@ -0,0 +1,15 @@ +--- +- 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`" diff --git a/wsl-debian.yaml b/wsl-debian.yaml index b11c85d..2e204d9 100644 --- a/wsl-debian.yaml +++ b/wsl-debian.yaml @@ -18,3 +18,4 @@ - dev-machine - pinentry-wsl - dockerd-wsl + - dircolors-wsl