dotfiles/.config/fish/functions/ssh_agent_startup.fish

6 lines
210 B
Fish
Raw Permalink Normal View History

2020-10-31 22:24:57 +00:00
function ssh_agent_startup -d 'Start ssh agent and set env vars'
if test -z "$SSH_AUTH_SOCK"; and test -z "$SSH_AGENT_PID"; and test -z "$SSH_CLIENT"
eval (ssh-agent -c) >/dev/null 2>&1
end
2020-10-31 22:24:57 +00:00
end