From: Samir Benmendil Date: Thu, 30 Oct 2025 00:31:51 +0000 (+0000) Subject: zsh: update SSH_AUTH_SOCK location when running zellij X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/121e96b510bfbe181885d3246237bb43aacc2162?ds=sidebyside zsh: update SSH_AUTH_SOCK location when running zellij Seems that newer version of ssh/sshd now forward the path into the home directory. --- diff --git a/zsh/lib/zellij.zsh b/zsh/lib/zellij.zsh index a30b799..18ffe73 100644 --- a/zsh/lib/zellij.zsh +++ b/zsh/lib/zellij.zsh @@ -1,7 +1,7 @@ if [[ -n "$ZELLIJ" ]]; then function update-env { # set SSH_AUTH_SOCK to latest socket - export SSH_AUTH_SOCK=$(realpath /tmp/ssh-XXXX*/*(om[1])) + export SSH_AUTH_SOCK=$(realpath ~/.ssh/agent/s.*(om[1])) } preexec_functions+=(update-env) fi