mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-12-13 17:34:59 +00:00
Restructurize and update readme.
This commit is contained in:
9
functions/fish-ssh-agent.fish
Normal file
9
functions/fish-ssh-agent.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user