toggle term shell to handle both zsh and bash

This commit is contained in:
Thomas Smallwood 2026-03-10 17:43:02 +01:00
parent 7b04948d5e
commit 14ee499552

View file

@ -10,7 +10,7 @@ return {
open_mapping = [[<leader>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)