From a6574a75cf7d6b6d41ece314f10cd69cf81823e1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 3 May 2023 16:28:43 -0500 Subject: [PATCH] refactor(zsh): place ssh-agent sock in XDG_RUNTIME_DIR --- dots/.config/zsh/config/profile/profile/env.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/zsh/config/profile/profile/env.zsh b/dots/.config/zsh/config/profile/profile/env.zsh index 97142fba..a7359a2a 100644 --- a/dots/.config/zsh/config/profile/profile/env.zsh +++ b/dots/.config/zsh/config/profile/profile/env.zsh @@ -9,7 +9,7 @@ export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2 export ZSH_AUTOSUGGEST_STRATEGY=(history completion) ### SSH ### -export SSH_AUTH_SOCK="${HOME}/.ssh/ssh-agent.sock" +export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock" ssh-add -l >/dev/null 2>&1 [ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null 2>&1