.commit_message.tmpl

This commit is contained in:
Daniel Bauer
2025-07-07 06:14:18 +02:00
parent 6f4529d0f1
commit 28616f8893
3 changed files with 10 additions and 1 deletions

8
.chezmoi.toml.tmpl Normal file
View File

@@ -0,0 +1,8 @@
{{- $github_email := promptStringOnce . "github_email" "Github Email address" -}}
[data]
github_email = {{ $github_email | quote }}
[git]
autoPush = true
autoCommit = true
commitMessageTemplate = ".commit_message.tmpl"

1
.commit_message.tmpl Normal file
View File

@@ -0,0 +1 @@
{{ promptString \"Commit message\" }}

View File

@@ -2,7 +2,7 @@
[user]
# Please adapt and uncomment the following lines:
name = Daniel Bauer
email = github@dbauer.me
email = {{ .github_email | quote }}
[core]
pager = sh -c 'command -v diff-so-fancy >/dev/null && exec diff-so-fancy || less --tabs=4 -RX'
pager = less