I am trying to configure my Yubikey to sign commits to github. It works when I use the git commit
command while in zsh, when I try using the commit
button in Rstudio IDE I get the following error:
>>> /usr/bin/git commit -F /var/folders/tx/2w66ttw55715mpr_58r1bjm40000gp/T/RtmpuSpC1s/git-commit-message-4521400409b2.txt
error: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
So it is not finding the gpg
program. I have configured Rstudio to use the zsh in Tools > Global Options > Terminal > New terminals open with Zsh. Here is the location of my gpg
program:
% which gpg
/opt/homebrew/bin/gpg
Any suggestions appreciated.