Files
vim-ale/gpg-pubkey/gpg-pubkey-id.sh

13 lines
156 B
Bash

#!/bin/sh
set -e
set -u
main() {
gpg --list-secret-keys --keyid-format LONG |
grep sec |
cut -d'/' -f2 |
cut -d' ' -f1
}
main