From 1e99880831af89c7564e3ff368c2d278b8a553a1 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 29 Apr 2026 13:45:16 -0600 Subject: [PATCH] Pre-configure SSH_AUTH_SOCK to be compatible with the ssh-agent service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the user uses ssh-agent.service, everything will Just Work™. If they don't, whatever online guide they're following will have instructed them to set SSH_AUTH_SOCK in their rc file, and it will override this. Related to #555 --- .../zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkosi.extra/usr/share/zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh b/mkosi.extra/usr/share/zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh index ce34d39..b38b276 100644 --- a/mkosi.extra/usr/share/zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh +++ b/mkosi.extra/usr/share/zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh @@ -118,3 +118,7 @@ source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring # Bind Ctrl+↑ and Ctrl+↓ keybinds to substring history search. bindkey '^[[1;5A' history-substring-search-up # Ctrl+↑ bindkey '^[[1;5B' history-substring-search-down # Ctrl+↓ + +# Set up auth sock for systemd-initiated ssh agent so the user doesn't +# have to faff about with this +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"