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,7 +1,9 @@
|
|||||||
if test -z "$SSH_ENV"
|
if status is-interactive
|
||||||
set -xg SSH_ENV $HOME/.ssh/environment
|
if test -z "$SSH_ENV"
|
||||||
end
|
set -xg SSH_ENV $HOME/.ssh/environment
|
||||||
|
end
|
||||||
|
|
||||||
if not __ssh_agent_is_started
|
if not __ssh_agent_is_started
|
||||||
__ssh_agent_start
|
__ssh_agent_start
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user