Skip to content

Commit 1c652e0

Browse files
Another small enhancement to prevent duplicate changes to ~.zshrc (#278)
1 parent 6bd4df1 commit 1c652e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

practices/guides/commit-signing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ gpg --armor --export ${my_email_address} | pbcopy
3939
git config --global user.email ${my_email_address} # same one used during key generation
4040
git config --global user.name ${my_username}
4141
git config --global commit.gpgsign true
42+
sed -i '' '/^export GPG_TTY/d' ~/.zshrc
4243
echo export GPG_TTY=\$\(tty\) >> ~/.zshrc
4344
source ~/.zshrc
4445
PINENTRY_BIN=$(whereis -q pinentry-mac)
45-
sed -i '' '/pinentry-program/d' ~/.gnupg/gpg-agent.conf
46+
sed -i '' '/^pinentry-program/d' ~/.gnupg/gpg-agent.conf
4647
echo "pinentry-program ${PINENTRY_BIN}" >> ~/.gnupg/gpg-agent.conf
4748
gpgconf --kill gpg-agent
4849
```

0 commit comments

Comments
 (0)