dotfiles/dot_local/bin/executable_get-gpg-key

10 lines
199 B
Fish

#!/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"