From 493e7c0c93fe95ec23fbeddf5aa8526e3c28560c Mon Sep 17 00:00:00 2001
From: tornike zedginidze <tokozedg@gmail.com>
Date: Thu, 16 Mar 2017 09:46:14 +0100
Subject: [PATCH 1/2] use equals sign for setenv function

Fish version 2.5.0-235-g84cf391 changes `setenv` function implementation.
Using equal sign to assign SSH_ENV variable fixes error caused by the change.
---
 init.fish | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.fish b/init.fish
index 8f87d8a..c0f981b 100644
--- a/init.fish
+++ b/init.fish
@@ -1,5 +1,5 @@
 if test -z "$SSH_ENV"
-    setenv SSH_ENV $HOME/.ssh/environment
+    setenv SSH_ENV=$HOME/.ssh/environment
 end
 
 if not __ssh_agent_is_started

From 08b3e2d24344c05cabdf3ff1acca8011283b59fd Mon Sep 17 00:00:00 2001
From: tornike zedginidze <tokozedg@gmail.com>
Date: Thu, 16 Mar 2017 17:44:10 +0100
Subject: [PATCH 2/2] use set for assigning SSH_ENV variable

---
 init.fish | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.fish b/init.fish
index c0f981b..719087a 100644
--- a/init.fish
+++ b/init.fish
@@ -1,5 +1,5 @@
 if test -z "$SSH_ENV"
-    setenv SSH_ENV=$HOME/.ssh/environment
+    set -xg SSH_ENV $HOME/.ssh/environment
 end
 
 if not __ssh_agent_is_started