GPG passphrase prompts can cause scripts to hang when signing git commits or performing GPG operations in background processes. Running `echo | gpg --clearsign > /dev/null` triggers the passphrase prompt upfront, allowing subsequent GPG operations to use the cached passphrase. The `gpg-connect-agent reloadagent /bye` command

3m read timeFrom nickjanetakis.com
Post cover image
Table of contents
# Trigger a Prompt# Clear Your Passphrase’s Cache# Demo Video

Sort: