feat(git): store local configs under ~/.local/etc/git
This commit is contained in:
parent
cda8ae2ab6
commit
ce16bca279
2 changed files with 9 additions and 10 deletions
|
@ -80,5 +80,5 @@
|
||||||
required = true
|
required = true
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
path = ~/.config/git/config.host # host-specific (from template)
|
path = ~/.local/etc/git/config.host # host-specific (from template)
|
||||||
path = ~/.config/git/config.local # optional manual configurations
|
path = ~/.local/etc/git/config # optional manual configurations
|
||||||
|
|
|
@ -9,10 +9,14 @@
|
||||||
homebrew: name={{ item }} state=latest
|
homebrew: name={{ item }} state=latest
|
||||||
loop: [git, git-crypt, git-lfs]
|
loop: [git, git-crypt, git-lfs]
|
||||||
|
|
||||||
- name: Create the git config directory
|
- name: Create the git config directories
|
||||||
file:
|
file:
|
||||||
path: ~/.config/git
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
loop:
|
||||||
|
- ~/.config/git
|
||||||
|
- ~/.local/bin
|
||||||
|
- ~/.local/etc/git
|
||||||
|
|
||||||
- name: Deploy git config
|
- name: Deploy git config
|
||||||
file:
|
file:
|
||||||
|
@ -27,12 +31,7 @@
|
||||||
- name: Deploy git host-specific config
|
- name: Deploy git host-specific config
|
||||||
template:
|
template:
|
||||||
src: config.host.j2
|
src: config.host.j2
|
||||||
dest: ~/.config/git/config.host
|
dest: ~/.local/etc/git/config.host
|
||||||
|
|
||||||
- name: Create bin directory for additional git commands
|
|
||||||
file:
|
|
||||||
path: ~/.local/bin
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Deploy additional git commands
|
- name: Deploy additional git commands
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue