From 9f5565ce1ea090c8b837b98ae34b59d849d8e7c5 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sun, 23 Mar 2025 09:15:50 +0000 Subject: [PATCH] feat(git): add GPG signing (#14) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/14 --- .bash_profile | 3 +++ .gitconfig | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.bash_profile b/.bash_profile index 4ac5e9e..3f1a6a8 100644 --- a/.bash_profile +++ b/.bash_profile @@ -3,6 +3,9 @@ if [ -f ~/.bashrc ]; then . ~/.bashrc fi +# Export GPG_TTY for signing stuff with gpg +export GPG_TTY=$(tty) + # Create pathref envars to my frameworks export VV="/var/www/fw/vegvisir/" export REFL="/var/www/fw/reflect/" diff --git a/.gitconfig b/.gitconfig index 431480d..0f65872 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,8 @@ [user] email = victor@vlw.se name = Victor Westerlund + signingkey = DCE987311CB5D2A252F58951D0AD730E1057DFC6 + signkey = 1057DFC6 [core] fileMode = false excludesfile = ~/.config/git/.gitignore @@ -13,3 +15,5 @@ contenttype = 0 [help] autocorrect = prompt +[commit] + gpgsign = true