From 2f0dee09b0e55416a6e4e6738fa07cfe106d7139 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:18:12 -0700 Subject: [PATCH] Add .local/bin/get-gpg-key --- dot_local/bin/executable_get-gpg-key | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dot_local/bin/executable_get-gpg-key diff --git a/dot_local/bin/executable_get-gpg-key b/dot_local/bin/executable_get-gpg-key new file mode 100644 index 0000000..9612408 --- /dev/null +++ b/dot_local/bin/executable_get-gpg-key @@ -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"