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

12 lines
182 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)
2021-12-07 02:46:50 +03:00
command gpg -abs "$t"
2021-10-01 10:22:10 +03:00
r=$?
command rm -f "$t" "$t.asc"
return "$r"
}