mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 23:14:49 -06:00
Add .gitconfig enabling diff'ing for encrypted .age files
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -7,4 +7,5 @@ dot_profile linguist-language=Shell
|
|||||||
dot_gitconfig linguist-language=TOML linguist-detectable
|
dot_gitconfig linguist-language=TOML linguist-detectable
|
||||||
*.toml linguist-detectable
|
*.toml linguist-detectable
|
||||||
*.toml.tmpl linguist-language=TOML linguist-detectable
|
*.toml.tmpl linguist-language=TOML linguist-detectable
|
||||||
*.cfg.tmpl linguist-language=INI linguist-detectable
|
*.cfg.tmpl linguist-language=INI linguist-detectable
|
||||||
|
*.age diff=age
|
||||||
2
.gitconfig
Normal file
2
.gitconfig
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[diff "age"]
|
||||||
|
textconv = "age -d -i ~/key.txt"
|
||||||
6
home/run_onchange_gitconfig.sh.tmpl
Normal file
6
home/run_onchange_gitconfig.sh.tmpl
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# We just need to have access to the Git repository
|
||||||
|
cd {{ .chezmoi.sourceDir }}
|
||||||
|
# The path is relative to the .git/config file
|
||||||
|
git config --local include.path ../.gitconfig
|
||||||
Reference in New Issue
Block a user