11 lines
199 B
Text
11 lines
199 B
Text
|
#!/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"
|