Skip to content

Commit 52cdc6a

Browse files
joshsymondsclaude
andcommitted
fix: set GPG_TTY in zsh for pinentry to find the terminal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 808f605 commit 52cdc6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

home-manager/zsh/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ in {
4545
};
4646

4747
envExtra = ''
48+
# GPG agent needs this to find the terminal for pinentry
49+
export GPG_TTY=$(tty)
50+
4851
# Only set LS_COLORS if vivid is available
4952
if command -v vivid &>/dev/null; then
5053
export LS_COLORS="$(vivid generate catppuccin-mocha)"

0 commit comments

Comments
 (0)