Skip to content

Commit f5a66a0

Browse files
fix(zshrc): Ensure GPG sign works with tty
1 parent f9768c2 commit f5a66a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.zshrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Sign commits via GPG - must be before P10k instant prompt for pinentry to work
2+
export GPG_TTY=$(tty)
3+
14
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
25
# Initialization code that may require console input (password prompts, [y/n]
36
# confirmations, etc.) must go above this block; everything else may go below.
@@ -51,10 +54,6 @@ if command -v terraform &>/dev/null; then
5154
complete -o nospace -C "$(which terraform)" terraform
5255
fi
5356

54-
# Sign commits via GPG
55-
export GPG_TTY=$(tty)
56-
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1 || true
57-
5857
export NVM_DIR="$HOME/.nvm"
5958
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
6059
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

0 commit comments

Comments
 (0)