Pre-configure SSH_AUTH_SOCK globally

Noticed 1e99880831 and thought this might be beneficial for other shells as well.
This commit is contained in:
Andrei Zhigalkin
2026-05-02 18:30:09 +00:00
committed by Nate Graham
parent c98d3cdcfa
commit 5f9ef707dd
2 changed files with 6 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: None
# Set up auth sock for systemd-initiated ssh agent so the user doesn't
# have to faff about with this
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket

View File

@@ -118,7 +118,3 @@ 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"