From 621c33244a21288786a2ce4db61f2dc472346075 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sat, 28 Sep 2024 21:32:10 +0100 Subject: [PATCH] Make gitconfig a template --- dot_gitconfig | 44 -------------------------------------------- dot_gitconfig.tmpl | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 44 deletions(-) delete mode 100644 dot_gitconfig create mode 100644 dot_gitconfig.tmpl diff --git a/dot_gitconfig b/dot_gitconfig deleted file mode 100644 index 14900f7..0000000 --- a/dot_gitconfig +++ /dev/null @@ -1,44 +0,0 @@ -[color] - ui = true - branch = always - status = always - interactive = always - diff = true -[user] - name = Maximilian Friedersdorff - email = max@friedersdorff.com - signingkey = F5E7FCB3 -[core] - editor = vim - excludesfile = /home/max/.gitignore -[merge] - tool = diffuse - ff = true -[push] - default = simple -[alias] - lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short - hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short - struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration - co = checkout - ci = commit - st = status - br = branch - df = diff - commit = commit -S - vh = verify-commit HEAD - vc = verify-commit - vt = tag -v - tag = tag -s - t = tag -s - alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\"" - r = rebase - m = merge - pa = !git remote | xargs -L1 git push --all -[pull] - rebase = false -[sendemail] - smtpserver = mail.friedersdorff.com - smtpuser = max - smtpencryption = tls - smtpserverport = 587 diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl new file mode 100644 index 0000000..d2cd8a2 --- /dev/null +++ b/dot_gitconfig.tmpl @@ -0,0 +1,39 @@ +[color] + ui = true + branch = always + status = always + interactive = always + diff = true +[user] + name = Maximilian Friedersdorff + email = {{ .email | quote }} +[core] + editor = nvim + excludesfile = /home/max/.gitignore +[merge] + tool = diffuse + ff = true +[push] + default = simple +[alias] + lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short + hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short + struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration + co = checkout + ci = commit + st = status + br = branch + df = diff + commit = commit -S + vt = tag -v + tag = tag -s + t = tag -s + alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\"" + pa = !git remote | xargs -L1 git push --all +[pull] + rebase = false +[sendemail] + smtpserver = mail.friedersdorff.com + smtpuser = max + smtpencryption = tls + smtpserverport = 587