aboutsummaryrefslogtreecommitdiffstats
path: root/gpg/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'gpg/README.md')
-rw-r--r--gpg/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpg/README.md b/gpg/README.md
index 1bec038..4a15a17 100644
--- a/gpg/README.md
+++ b/gpg/README.md
@@ -41,7 +41,7 @@ $ gpg -k
### Copy Public Key
```console
-$ gpg --export --armor <user-id> | xclip -sel clip
+gpg --export --armor $(gpg -K --with-colons --keyid-format SHORT | awk -F: '/^pub:/ { print $5 }') | xclip -sel clip
```
### Copy Private key (Caution)