Skip to content

Commit 2dad705

Browse files
fix(gpg): notify gpg-agent of TTY on shell initialization
Update gpg-agent with current TTY using gpg-connect-agent to ensure GPG signing works in new terminal sessions without manual export.
1 parent 18fc29d commit 2dad705

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.zshrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ complete -o nospace -C /usr/local/bin/terraform terraform
4848

4949
# Sign commits via GPG
5050
export GPG_TTY=$(tty)
51+
gpg-connect-agent updatestartuptty /bye >/dev/null
5152

5253
export NVM_DIR="$HOME/.nvm"
5354
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
@@ -83,3 +84,4 @@ fpath=(/Users/sanyamkhurana/.docker/completions $fpath)
8384
autoload -Uz compinit
8485
compinit
8586
# End of Docker CLI completions
87+

0 commit comments

Comments
 (0)