2017-06-13 21:40:56 -04:00
|
|
|
#!/bin/zsh
|
|
|
|
# There's a weird inconsistency between the --default-key and --local-user
|
|
|
|
# arguments: when you have multiple signing subkeys, --local-user chooses the
|
|
|
|
# newest, and --default-key chooses the one that's available. The latter is
|
|
|
|
# clearly preferable. So we shuffle the arguments around a little.
|
|
|
|
for arg; do
|
|
|
|
if [[ $arg = -bsau ]]; then
|
|
|
|
args+=(-bsa --default-key)
|
|
|
|
else
|
|
|
|
args+=($arg)
|
|
|
|
fi
|
|
|
|
done
|
2017-08-09 21:13:58 -04:00
|
|
|
exec gpg --no-tty "${(@)args}"
|