(fix) new ssh-agent location

This commit is contained in:
marcothms committed 2026-08-17 11:30:36 +02:00
1 parent fa6689c686
commit 43e9364e0a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ t() {
}
z() {
# if remote, link agent so a stale zellij env doesn't hurt agent
if [[ $SSH_AUTH_SOCK =~ ^"/tmp/ssh-" ]]; then
if [[ $SSH_AUTH_SOCK =~ ^"/tmp/ssh-" ]] || [[ $SSH_AUTH_SOCK =~ "$HOME/.ssh/agent" ]]; then
ln -sf $SSH_AUTH_SOCK /tmp/agent.sock
export SSH_AUTH_SOCK=/tmp/agent.sock
fi