Pinentry macOS

If you see the following during a GPG operation:

[GNUPG:] KEY_CONSIDERED [snip] 2
[GNUPG:] BEGIN_SIGNING H10
[GNUPG:] PINENTRY_LAUNCHED 87393 curses 1.2.1 - alacritty - - 501/20 0
gpg: signing failed: Inappropriate ioctl for device
[GNUPG:] FAILURE sign 83918950
gpg: signing failed: Inappropriate ioctl for device

It's because GnuPG is horrible. Switch to pinentry-mac from GPGTools and try not to think about it:

brew install pinentry-mac
echo "pinentry-program $(which pinentry-mac)" >~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye