diff --git a/.gitattributes b/.gitattributes index 7a17dfd..70dddb9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,4 +7,5 @@ dot_profile linguist-language=Shell dot_gitconfig linguist-language=TOML linguist-detectable *.toml linguist-detectable *.toml.tmpl linguist-language=TOML linguist-detectable -*.cfg.tmpl linguist-language=INI linguist-detectable \ No newline at end of file +*.cfg.tmpl linguist-language=INI linguist-detectable +*.age diff=age \ No newline at end of file diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..9f0e9e0 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,2 @@ +[diff "age"] + textconv = "age -d -i ~/key.txt" \ No newline at end of file diff --git a/home/run_onchange_gitconfig.sh.tmpl b/home/run_onchange_gitconfig.sh.tmpl new file mode 100644 index 0000000..f0c66b1 --- /dev/null +++ b/home/run_onchange_gitconfig.sh.tmpl @@ -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