From 059e858a007391a0019988e941ae489996cb4210 Mon Sep 17 00:00:00 2001
From: Mat Jones <mat@mjones.network>
Date: Thu, 16 Dec 2021 14:45:05 -0500
Subject: [PATCH] remove unused environment var loading entire history into an
 env var (#242)

---
 src/shell/atuin.fish | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/shell/atuin.fish b/src/shell/atuin.fish
index 5d59d01d..b382b7e3 100644
--- a/src/shell/atuin.fish
+++ b/src/shell/atuin.fish
@@ -1,6 +1,4 @@
-
 set -gx ATUIN_SESSION (atuin uuid)
-set -gx ATUIN_HISTORY (atuin history list)
 
 function _atuin_preexec --on-event fish_preexec
     set -gx ATUIN_HISTORY_ID (atuin history start "$argv[1]")
@@ -9,7 +7,8 @@ end
 function _atuin_postexec --on-event fish_postexec
     set s $status
     if test -n "$ATUIN_HISTORY_ID"
-        RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &; disown
+        RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &
+        disown
     end
 end
 
@@ -22,7 +21,7 @@ function _atuin_search
 end
 
 if test -z $ATUIN_NOBIND
-    bind -k up '_atuin_search'
-    bind \eOA '_atuin_search'
-    bind \e\[A '_atuin_search'
+    bind -k up _atuin_search
+    bind \eOA _atuin_search
+    bind \e\[A _atuin_search
 end