marcus-grant/ansible-collection-dotfiles

Add pinentry script to make macos gpg choose tty vs keychain for gpg entry

marcus-grant opened this issue · 0 comments

Pinentry gets used to prompt the user for entering gpg key passphrases when they are needed. On MacOS this always defaults to the keychain prompt (GUI) and most of the time I use the terminal to do gpg stuff. Use this scripted solution to make gpg detect if tty forked the process and then kickoff gpg-agent's pinentry program using tty instead of the keychain app