Add .local/bin/get-gpg-key

This commit is contained in:
punkfairie 2024-04-17 19:18:12 -07:00
parent dfcf0b4d9d
commit 2f0dee09b0
No known key found for this signature in database
GPG key ID: 284B78B49C058673

View file

@ -0,0 +1,10 @@
#!/usr/bin/env fish
set -f key (\
gpg --list-secret-keys --keyid-format SHORT\
| grep 'rsa4096' \
| sed 's/sec rsa4096\///'\
| awk '{print $1}'\
)
echo "$key"