Seems that newer version of ssh/sshd now forward the path into the home
directory.
if [[ -n "$ZELLIJ" ]]; then
function update-env {
# set SSH_AUTH_SOCK to latest socket
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
}
preexec_functions+=(update-env)
fi