From 2c1ef39d105eb0d707020d32f68843379044d0a6 Mon Sep 17 00:00:00 2001 From: Luco Bellic Date: Mon, 19 Aug 2024 06:19:52 +0200 Subject: [PATCH] fix(toggleterm): exit for fish shell (#345) --- lua/overseer/strategy/toggleterm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/overseer/strategy/toggleterm.lua b/lua/overseer/strategy/toggleterm.lua index 0eea6bb..b94faa0 100644 --- a/lua/overseer/strategy/toggleterm.lua +++ b/lua/overseer/strategy/toggleterm.lua @@ -96,7 +96,7 @@ function ToggleTermStrategy:start(task) if self.opts.use_shell then t:send(cmd) - t:send("exit $?") + t:send("exit " .. (vim.o.shell:find("fish") and "$status" or "$?")) end end, on_stdout = function(t, job_id, d)