I installed the gnupg2 formula from Homebrew successfully and can run gpg2 from the command line. However, certain programs such as git expect to run gpg rather than gpg2.
I resolved this problem by using what I feel like is a dirty hack: a symlink of gpg2 to gpg:
ln -s /usr/local/bin/gpg2 /usr/local/bin/gpg
Is there a more proper way to do this? Should I just settle for installing the gnupg formula?
Sort of looking for something like this for OSX: How to set gpg2 as default implementation of gpg on debian?.