summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index ce58bdd..bc999f0 100644
--- a/.zshrc
+++ b/.zshrc
@@ -80,5 +80,10 @@ zstyle ':vcs_info:git:*' formats '|%F{3}%b%f'
gpg-connect-agent updatestartuptty /bye > /dev/null
+unset SSH_AGENT_PID
+if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
+ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+fi
+
setopt PROMPT_SUBST
PROMPT='<%F{2}%n%f@%F{6}%m%f|%F{5}%~%f${vcs_info_msg_0_}%f> '