a fish shell plugin for launching the ssh-agent and keeping it running
install using fisher
$ fisher install m4rch3n1ng/ssh-agent.fish
and add this line to the end of your config.fish
fish_ssh_agent
if you don't want to automatically start the ssh agent on shell startup
but instead want to manually start the ssh-agent using $ ssh-add
add --manual
as an argument
fish_ssh_agent --manual
this is modeled after this stackoverflow answer, but converted to be used with fish.