dotfiles/dot_local/bin/executable_get-gpg-key

11 lines
199 B
Text
Raw Normal View History

2024-04-17 19:18:12 -07:00
#!/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"