1
0

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

This commit is contained in:
Konstantin Demin 2024-03-04 16:11:07 +03:00
parent 5a9f0b08c0
commit b2436b9e21
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -43,6 +43,10 @@ z-ssh-agent() {
done done
unset SSH_AGENT_PID unset SSH_AGENT_PID
if [ -S "${SSH_AUTH_SOCK}" ] ; then
rm -fv "${SSH_AUTH_SOCK}"
fi
{ {
eval "$(ssh-agent -s -a "${SSH_AUTH_SOCK}")" eval "$(ssh-agent -s -a "${SSH_AUTH_SOCK}")"
} >/dev/null } >/dev/null