From 14ee499552c0254d48400116ea40401bf6fc0ee6 Mon Sep 17 00:00:00 2001 From: Thomas Smallwood Date: Tue, 10 Mar 2026 17:43:02 +0100 Subject: [PATCH] toggle term shell to handle both zsh and bash --- lua/plugins/toggle-term.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/toggle-term.lua b/lua/plugins/toggle-term.lua index 2a6975e..bf0625d 100644 --- a/lua/plugins/toggle-term.lua +++ b/lua/plugins/toggle-term.lua @@ -10,7 +10,7 @@ return { open_mapping = [[tt]], direction = "float", float_opts = { border = "rounded" }, - shell = vim.fn.exepath("zsh") .. " -l -i", + shell = (os.getenv("SHELL") or vim.fn.exepath("zsh") or vim.fn.exepath("bash")) .. " -l -i", }, config = function(_, opts)