On MacOSX I'm using gnupg21 in order to sign git commit. Depending on project I'm currently working sometime I'm using IDE (here IntellijIDEA) to interact with git and sometime directly in terminal.
I had to setup
pinentry-program /usr/local/bin/pinentry-mac
to be able to continue working on IntellijIDEA.
However I'm not really fan about prompting GUI when I'm using terminal. Do you think is possible to configure gnupg21 to choose pinentry program regarding the situation?
- On GUI ->
/usr/local/bin/pinentry-mac - On terminal ->
/usr/local/bin/pinentry
Edit: My current config files
gpg-agent.conf
enable-ssh-support
default-cache-ttl 14400
max-cache-ttl 86400
log-file /var/log/gpg-agent.log
pinentry-program /usr/local/bin/pinentry-mac
gpg.conf
keyserver hkp://keys.gnupg.net
no-tty
use-agent