aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config')
-rw-r--r--home/.config/zsh/.zprofile1
-rw-r--r--home/.config/zsh/.zshrc4
2 files changed, 3 insertions, 2 deletions
diff --git a/home/.config/zsh/.zprofile b/home/.config/zsh/.zprofile
index c1af85d..30b5b21 100644
--- a/home/.config/zsh/.zprofile
+++ b/home/.config/zsh/.zprofile
@@ -39,7 +39,6 @@ export LESS="-F --RAW-CONTROL-CHARS"
[[ -r /usr/bin/source-highlight-esc.sh ]] && export LESSOPEN="| /usr/bin/source-highlight-esc.sh %s"
# ── GPG / SSH ─────────────────────────────────────────────────────────────────
-export GPG_TTY=$TTY
unset SSH_AGENT_PID
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc
index bd03e8b..fad4bca 100644
--- a/home/.config/zsh/.zshrc
+++ b/home/.config/zsh/.zshrc
@@ -283,7 +283,9 @@ compdef sys=systemctl ssys=systemctl sysu=systemctl
compdef l=lsd la=lsd lt=lsd
# ── GPG agent ─────────────────────────────────────────────────────────────────
-# Refresh gpg-agent's TTY so pinentry prompts appear in the right terminal
+# Set GPG_TTY to this shell's actual TTY (not the login console) and tell
+# the agent so pinentry prompts appear in the right terminal
+export GPG_TTY=$TTY
gpg-connect-agent updatestartuptty /bye &>/dev/null
# ── Zoxide (smart directory jumping) ──────────────────────────────────────────