This commit is contained in:
parent
6d29f9afbc
commit
98deefe039
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user