fish-ssh-agent/init.fish

14 lines
288 B
Fish
Raw Normal View History

2015-11-04 12:34:14 +00:00
if test -z "$SSH_ENV"
setenv SSH_ENV $HOME/.ssh/environment
end
if test -z "$SSH_AGENT_PID"
if test -f $SSH_ENV
source $SSH_ENV > /dev/null
end
ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null
if test $status -ne 0
__ssh_agent_start
end
end