1
0

add gpg helper function

This commit is contained in:
Konstantin Demin 2021-10-01 10:22:10 +03:00
parent 6ecf110b2c
commit 54ae3affd0
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

11
.config/zsh/alias/gpg.zsh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/zsh
gpg-warmup() {
(( ${+commands[gpg]} )) || return 1
local r t
t=$(mktemp)
gpg --expert -abs "$t"
r=$?
command rm -f "$t" "$t.asc"
return "$r"
}