mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-12-17 02:54:22 +00:00
Only start agent when status is interactive
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
if status is-interactive
|
||||
if test -z "$SSH_ENV"
|
||||
set -xg SSH_ENV $HOME/.ssh/environment
|
||||
end
|
||||
@@ -5,3 +6,4 @@ end
|
||||
if not __ssh_agent_is_started
|
||||
__ssh_agent_start
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user