Add .local/bin/get-gpg-key
This commit is contained in:
parent
dfcf0b4d9d
commit
2f0dee09b0
1 changed files with 10 additions and 0 deletions
10
dot_local/bin/executable_get-gpg-key
Normal file
10
dot_local/bin/executable_get-gpg-key
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/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"
|
Loading…
Reference in a new issue