aboutsummaryrefslogtreecommitdiff
path: root/dot_zshrc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'dot_zshrc.tmpl')
-rw-r--r--dot_zshrc.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
index 489b539..c19d20a 100644
--- a/dot_zshrc.tmpl
+++ b/dot_zshrc.tmpl
@@ -48,10 +48,10 @@ alias ls='eza --icons=always'
{{ if eq .chezmoi.hostname "gentoo" }}
unset SSH_AGENT_PID
-export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
-export GPG_TTY="$(tty)"
-gpgconf --launch gpg-agent
-gpg-connect-agent updatestartuptty /bye >/dev/null
+
+if [[ -n ${XDG_RUNTIME_DIR:-} ]]; then
+ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.sock"
+fi
eval "$(mise activate zsh)"