mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-12-13 17:34:59 +00:00
9 lines
256 B
Fish
9 lines
256 B
Fish
function fish-ssh-agent --description "Start ssh-agent if not started yet, or uses already started ssh-agent."
|
|
if test -z "$SSH_ENV"
|
|
set -xg SSH_ENV $HOME/.ssh/environment
|
|
end
|
|
|
|
if not __ssh_agent_is_started
|
|
__ssh_agent_start
|
|
end
|
|
end |