Skip to content

Commit 589342b

Browse files
Improved commit signing guide for macOS (#277)
1 parent ace3d12 commit 589342b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

practices/guides/commit-signing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ git config --global user.name ${my_username}
4141
git config --global commit.gpgsign true
4242
echo export GPG_TTY=\$\(tty\) >> ~/.zshrc
4343
source ~/.zshrc
44-
echo "pinentry-program /opt/homebrew/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
44+
PINENTRY_BIN=$(whereis -q pinentry-mac)
45+
sed -i '' '/pinentry-program/d' ~/.gnupg/gpg-agent.conf
46+
echo "pinentry-program ${PINENTRY_BIN}" >> ~/.gnupg/gpg-agent.conf
4547
gpgconf --kill gpg-agent
4648
```
4749

0 commit comments

Comments
 (0)