git: autoselect first -sk ssh key from agent for signing

This commit is contained in:
Daniel Lundin 2024-04-04 22:55:35 +02:00
parent 6bc7f9e742
commit eefe6eb9a1
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions
.config/git

3
.config/git/signing-key.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
ssh-add -L | awk '/^sk-ssh/ { print "key::" $1 " " $2 }'