I needed a way to start ssh-agent and keep it across terminal sessions. Most desktop environments will do this for you.
To install use pip:
xpip install xontrib-init-ssh-agent
# or: xpip install -U git+https://github.com/theRealBithive/xontrib-init-ssh-agent
xontrib load init_ssh_agent
To kill the ssh_agent use the ssh-agent -k
command. n.b. the environment variables will not be unset and a new agent is only started with another terminal session.
Works fine on my PC(tm)
This package was created with xontrib cookiecutter template.