Move git config into XDG_CONFIG_HOME

This commit is contained in:
Anthony Rose 2021-11-01 10:59:31 +00:00
parent 6cda7a213e
commit a318f2989b
3 changed files with 7 additions and 4 deletions

View file

@ -18,4 +18,4 @@
last = log -1 HEAD --pretty=fuller last = log -1 HEAD --pretty=fuller
lastmail = format-patch --stdout -1 HEAD lastmail = format-patch --stdout -1 HEAD
[include] [include]
path = .gitconfig.local path = local

View file

@ -39,4 +39,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config" path: "{{ ansible_env.HOME }}/.config"
state: directory state: directory
mode: '0700' - name: Create ~/.config/git directory
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/git"
state: directory

View file

@ -37,10 +37,10 @@
ansible.builtin.copy: ansible.builtin.copy:
src: mailcap src: mailcap
dest: "{{ ansible_env.HOME }}/.mailcap" dest: "{{ ansible_env.HOME }}/.mailcap"
- name: Copy .gitconfig - name: Copy .config/git/config
ansible.builtin.copy: ansible.builtin.copy:
src: gitconfig src: gitconfig
dest: "{{ ansible_env.HOME }}/.gitconfig" dest: "{{ ansible_env.HOME }}/.config/git/config"
- name: Copy .quiltrc-dpkg - name: Copy .quiltrc-dpkg
ansible.builtin.copy: ansible.builtin.copy:
src: quiltrc-dpkg src: quiltrc-dpkg