add gpg helper function
This commit is contained in:
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"
|
||||
}
|
Reference in New Issue
Block a user