add gpg helper function
This commit is contained in:
parent
6ecf110b2c
commit
54ae3affd0
11
.config/zsh/alias/gpg.zsh
Normal file
11
.config/zsh/alias/gpg.zsh
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user