👩💻 Join our community of thousands of amazing developers!
TLNR 设置环境变量PASSWORD_STORE_GPG_OPTS="--pinentry-mode loopback --passphrase 私钥密码" 研究过程 man page 说明了环境变量 PASSWORD_STORE_GPG_OPTS 是要传递给 GPG 的所有调用的附加选项。 通过翻阅源码可以看到GPG选项为: 1 GPG_OPTS=( $PASSWORD_STORE_GPG_OPTS "--quiet" "--yes" "--compress-algo=none" "--no-encrypt-to" ) 那么只需要拼接--pinentry-mode loopback --passphrase 私钥密码即可...