From e7f9937b528782e38caf58c7d7f2345dfa7e9f71 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 29 Sep 2023 12:59:28 -0700 Subject: [PATCH] Update SSH_AUTH_SOCK --- local/early-init.alexanders-desktop.zsh | 2 +- local/early-init.alexanders-portable.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local/early-init.alexanders-desktop.zsh b/local/early-init.alexanders-desktop.zsh index f534605..c4bc597 100644 --- a/local/early-init.alexanders-desktop.zsh +++ b/local/early-init.alexanders-desktop.zsh @@ -15,8 +15,8 @@ add_ssh_keys() { # Because I use zsh to start X11 if [[ -o login ]]; then export LC_ALL=en_US.UTF-8 - export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" eval "$(gnome-keyring-daemon --start 2>/dev/null)" + export SSH_AUTH_SOCK SSH_ASKPASS_REQUIRE="force" \ SSH_ASKPASS="/usr/local/bin/ssh-askpass-cat.sh" \ add_ssh_keys & diff --git a/local/early-init.alexanders-portable.zsh b/local/early-init.alexanders-portable.zsh index c339d4c..aae2857 100644 --- a/local/early-init.alexanders-portable.zsh +++ b/local/early-init.alexanders-portable.zsh @@ -14,8 +14,8 @@ add_ssh_keys() { # Because I use zsh to start X11 if [[ -o login ]]; then export LC_ALL=en_US.UTF-8 - export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" eval "$(gnome-keyring-daemon --start 2>/dev/null)" + export SSH_AUTH_SOCK SSH_ASKPASS_REQUIRE="force" SSH_ASKPASS="/usr/local/bin/ssh-askpass-cat.sh" add_ssh_keys & if ! [[ -v WAYLAND_DISPLAY ]] && [ "${XDG_VTNR}" -eq 1 ]; then