mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-25 00:39:30 -04:00
Pre-configure SSH_AUTH_SOCK globally
Noticed 1e99880831 and thought this might be beneficial for other shells as well.
This commit is contained in:
committed by
Nate Graham
parent
c98d3cdcfa
commit
5f9ef707dd
6
mkosi.extra/usr/lib/environment.d/60-ssh-auth-sock.conf
Normal file
6
mkosi.extra/usr/lib/environment.d/60-ssh-auth-sock.conf
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user