1
0
dotfiles/.config/zsh/alias/gpg.zsh
2024-01-27 00:10:58 +03:00

15 lines
177 B
Bash

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