From 5e42747d92537d28028baefbbffe0bc507f59f70 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 22 Oct 2026 23:33:13 +0300 Subject: .profile: enable ssh-agent via systemd --- %HOME%/.profile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/%HOME%/.profile b/%HOME%/.profile index f74af3b..aefb9ff 100644 --- a/%HOME%/.profile +++ b/%HOME%/.profile @@ -9,6 +9,11 @@ elif command -v nano > /dev/null 2>&1; then export EDITOR=nano fi +# https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user +if systemctl --user is-enabled --quiet ssh-agent > /dev/null 2>&1; then + export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +fi + path_export() { local path for path; do -- cgit v1.3