Move gitconfig to xdg path

This commit is contained in:
exu 2024-11-29 08:18:37 +01:00
parent f0b6394c34
commit 8cddeda98a
4 changed files with 4 additions and 27 deletions

View File

@ -29,4 +29,4 @@
latest = !sh -c 'git describe --tags $(git rev-list --tags --max-count=1) | xargs git checkout' -
# conditonal config
[includeIf "gitdir:**gitprojects/occ/**"]
path = ~/.gitconfig-occ
path = ~/.config/git/occ

View File

@ -0,0 +1 @@
AddKeysToAgent yes

View File

@ -30,6 +30,7 @@
loop:
- "~/.emacs.d"
- "~/scripts"
- "~/.gitconfig"
tags: config
- name: Copy new files and directories
@ -42,21 +43,13 @@
- ".config"
- ".face"
- ".fonts"
- ".gitconfig"
- ".gtkrc-2.0"
- ".local"
- ".ssh"
- ".themes"
- "scripts"
tags: config
- name: Copy new templated files
ansible.builtin.template:
src: "{{ item }}"
dest: "~/"
loop:
- ".ssh/config.j2"
tags: config
- name: Copy new files and directories (root)
ansible.posix.synchronize:
src: "{{ item }}"

View File

@ -1,17 +0,0 @@
AddKeysToAgent yes
Host gitlab.com
IdentityFile /home/exu/.ssh/id_ed25519_git
Host github.com
IdentityFile /home/exu/.ssh/id_ed25519_git
Host gitea.exu.li
IdentityFile /home/exu/.ssh/id_ed25519_git
Host aur.archlinux.org
IdentityFile /home/exu/.ssh/id_ed25519_git
Host git.open-circle.ch
IdentityFile /home/exu/.ssh/id_ed25519_git
AddressFamily inet