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