From 372087a7253408d6ce5f0740455542b6ad3f53f1 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sat, 14 Sep 2024 15:01:20 +0200 Subject: [PATCH] feat: add git and gnupg config --- config/git/gitconfig | 18 ++++++++++++++++++ config/gnupg/gpg-agent.conf | 5 +++++ config/gnupg/gpg.conf | 10 ++++++++++ config/gnupg/sshcontrol | 1 + 4 files changed, 34 insertions(+) create mode 100644 config/git/gitconfig create mode 100644 config/gnupg/gpg-agent.conf create mode 100644 config/gnupg/gpg.conf create mode 100644 config/gnupg/sshcontrol diff --git a/config/git/gitconfig b/config/git/gitconfig new file mode 100644 index 0000000..ae305f9 --- /dev/null +++ b/config/git/gitconfig @@ -0,0 +1,18 @@ +[user] + email = redacted@example.org + name = redacted + signingkey = redacted +[commit] + gpgsign = true +[gpg] + program = /usr/bin/gpg +[rebase] + autostash = true + autosquash = true +[pull] + rebase = true + autostash = true +[format] + pretty = oneline +[alias] + logv = log --pretty=full --show-signature diff --git a/config/gnupg/gpg-agent.conf b/config/gnupg/gpg-agent.conf new file mode 100644 index 0000000..8978958 --- /dev/null +++ b/config/gnupg/gpg-agent.conf @@ -0,0 +1,5 @@ +enable-ssh-support +ignore-cache-for-signing +no-allow-external-cache +pinentry-program /usr/bin/pinentry-qt +allow-loopback-pinentry diff --git a/config/gnupg/gpg.conf b/config/gnupg/gpg.conf new file mode 100644 index 0000000..a7b2e4d --- /dev/null +++ b/config/gnupg/gpg.conf @@ -0,0 +1,10 @@ +no-emit-version +no-comments +trusted-key 0xredacted + +keyid-format 0xlong +with-fingerprint +with-sig-list +allow-freeform-uid + +keyserver hkps://keys.openpgp.org diff --git a/config/gnupg/sshcontrol b/config/gnupg/sshcontrol new file mode 100644 index 0000000..f4ad42a --- /dev/null +++ b/config/gnupg/sshcontrol @@ -0,0 +1 @@ +your_keygrip_here