aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-08-19 15:50:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-08-19 16:13:24 +1200
commitbc192cfa96f7b8f704573523a3586780c1537559 (patch)
tree86471f54c41eb68e56d58145a0b685aec1f52146
parentAdd target and config for picom (diff)
downloaddotfiles-bc192cfa96f7b8f704573523a3586780c1537559.tar.gz
dotfiles-bc192cfa96f7b8f704573523a3586780c1537559.zip
Put Git repository template in XDG_DATA_HOME
-rw-r--r--Makefile10
-rw-r--r--git/config.mi52
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5294e7c2..5c23df70 100644
--- a/Makefile
+++ b/Makefile
@@ -355,7 +355,7 @@ git/config: git/config.m4
-D NAME=$(NAME) \
-D EMAIL=$(EMAIL) \
-D GPG_KEYID=$(GPG_KEYID) \
- -D XDG_CONFIG_HOME=$(XDG_CONFIG_HOME) \
+ -D XDG_DATA_HOME=$(XDG_DATA_HOME) \
git/config.m4 > $@
less/less: less/lesskey
@@ -450,12 +450,12 @@ install-games-man:
install-git: git/config $(GIT_TEMPLATE_HOOKS)
mkdir -p -- $(XDG_CONFIG_HOME)/git
cp -p -- git/config $(XDG_CONFIG_HOME)/git/config
- mkdir -p -- $(XDG_CONFIG_HOME)/git/template
+ mkdir -p -- $(XDG_DATA_HOME)/git/template
cp -pR -- git/template/description \
- $(XDG_CONFIG_HOME)/git/template/description
- mkdir -p -- $(XDG_CONFIG_HOME)/git/template/hooks
+ $(XDG_DATA_HOME)/git/template/description
+ mkdir -p -- $(XDG_DATA_HOME)/git/template/hooks
cp -pR -- $(GIT_TEMPLATE_HOOKS) \
- $(XDG_CONFIG_HOME)/git/template/hooks
+ $(XDG_DATA_HOME)/git/template/hooks
install-gnupg: gnupg/profile.d/gnupg.sh install-sh
cp -p -- gnupg/profile.d/gnupg.sh $(HOME)/.profile.d
diff --git a/git/config.mi5 b/git/config.mi5
index 6ae7f8ef..efdbc277 100644
--- a/git/config.mi5
+++ b/git/config.mi5
@@ -9,7 +9,7 @@
[init]
defaultBranch = master
- templateDir = <% XDG_CONFIG_HOME %>/git/template
+ templateDir = <% XDG_DATA_HOME %>/git/template
[log]
date = local