From 8be2fbcfd8cb96e6e86a3ba4d22db19f5349be01 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Sat, 17 Feb 2024 17:45:49 +0100 Subject: [PATCH] export environment env var for lf This is useful when scripting lf and you need to adjust behavior for taolf. Eventually I will have to rewrite the opening mechanism to make a lot of this scripting easier. --- lua/taolf/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/taolf/main.lua b/lua/taolf/main.lua index e8cf4c2..57bc463 100644 --- a/lua/taolf/main.lua +++ b/lua/taolf/main.lua @@ -116,7 +116,7 @@ function Lf:__set_cmd_wrapper() end self.term.cmd = - ([[%s -command='$printf $id > %s' -last-dir-path='%s' -selection-path='%s' '%s']]) + ([[env TAOLF=true %s -command='$printf $id > %s' -last-dir-path='%s' -selection-path='%s' '%s']]) :format( self.term.cmd, self.tmp_id,