From 6bf4505b334d0d19a574789f279e91e4eacc285c Mon Sep 17 00:00:00 2001 From: Yutian Li Date: Thu, 4 Apr 2024 00:42:17 -0400 Subject: [PATCH] Allow overriding _ssh_agent_sock for symmetry to _ssh_agent_env --- modules/ssh/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ssh/init.zsh b/modules/ssh/init.zsh index f8709979..6bf237c5 100644 --- a/modules/ssh/init.zsh +++ b/modules/ssh/init.zsh @@ -16,8 +16,8 @@ _ssh_dir="$HOME/.ssh" # Set the path to the environment file if not set by another module. _ssh_agent_env="${_ssh_agent_env:-${XDG_CACHE_HOME:-$HOME/.cache}/prezto/ssh-agent.env}" -# Set the path to the persistent authentication socket. -_ssh_agent_sock="${XDG_CACHE_HOME:-$HOME/.cache}/prezto/ssh-agent.sock" +# Set the path to the persistent authentication socket if not set by another module. +_ssh_agent_sock="${_ssh_agent_sock:-${XDG_CACHE_HOME:-$HOME/.cache}/prezto/ssh-agent.sock}" # Start ssh-agent if not started. if [[ ! -S "$SSH_AUTH_SOCK" ]]; then