Mine
public text v1 · immutable# GUI ssh-agent
# Hack #69 in "Linux Server Hacks"
# put this in ~/.profile
if [ -f ~/.agent.env ]; then
. ~/.agent.env > /dev/null
if ! kill -0 $SSH_AGENT_PID > /dev/null 2> then
echo "Stale agent..."
eval `ssh-agent | tee ~/.agent.env`
ssh-add
fi
else
eval `ssh-agent | tee ~/.agent.env`
ssh-add
fi