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
|
||||
|
||||
[include]
|
||||
path = ~/.config/git/config.host # host-specific (from template)
|
||||
path = ~/.config/git/config.local # optional manual configurations
|
||||
path = ~/.local/etc/git/config.host # host-specific (from template)
|
||||
path = ~/.local/etc/git/config # optional manual configurations
|
||||
|
|
|
@ -9,10 +9,14 @@
|
|||
homebrew: name={{ item }} state=latest
|
||||
loop: [git, git-crypt, git-lfs]
|
||||
|
||||
- name: Create the git config directory
|
||||
- name: Create the git config directories
|
||||
file:
|
||||
path: ~/.config/git
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- ~/.config/git
|
||||
- ~/.local/bin
|
||||
- ~/.local/etc/git
|
||||
|
||||
- name: Deploy git config
|
||||
file:
|
||||
|
@ -27,12 +31,7 @@
|
|||
- name: Deploy git host-specific config
|
||||
template:
|
||||
src: config.host.j2
|
||||
dest: ~/.config/git/config.host
|
||||
|
||||
- name: Create bin directory for additional git commands
|
||||
file:
|
||||
path: ~/.local/bin
|
||||
state: directory
|
||||
dest: ~/.local/etc/git/config.host
|
||||
|
||||
- name: Deploy additional git commands
|
||||
file:
|
||||
|
|
Loading…
Add table
Reference in a new issue