Skip to content

Commit

Permalink
fix(toggleterm): exit for fish shell (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucobellic authored Aug 19, 2024
1 parent cbcdcba commit 2c1ef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/overseer/strategy/toggleterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c1ef39

Please sign in to comment.