1
0
dotfiles/.config/zsh/alias/gpg.zsh

12 lines
183 B
Bash
Raw Normal View History

2021-10-01 10:22:10 +03:00
#!/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"
}