1
0

zsh: fix ssh-agent
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Konstantin Demin 2024-03-04 15:47:43 +03:00
parent 6d29f9afbc
commit 98deefe039
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -9,6 +9,8 @@ z-ssh-agent() {
break break
done done
[ -z "${SSH_AGENT_PID}" ] || kill "${SSH_AGENT_PID}"
unset SSH_AGENT_PID
(( ${+commands[ssh-agent]} )) || return 127 (( ${+commands[ssh-agent]} )) || return 127
@ -24,6 +26,6 @@ z-ssh-agent() {
fi fi
{ {
eval "$(ssh-agent -s -k -a "${SSH_AUTH_SOCK}")" eval "$(ssh-agent -s -a "${SSH_AUTH_SOCK}")"
} >/dev/null } >/dev/null
} }