From d8e9cae311c125b8469caa02efede2f5ae363a63 Mon Sep 17 00:00:00 2001 From: Alvaro Sevilla Date: Tue, 13 Jul 2021 20:02:33 +0200 Subject: Use $SHELL instead of 'zsh' for terminal tabs --- lua/luatab/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/luatab') diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua index 6f513a6..486b004 100644 --- a/lua/luatab/init.lua +++ b/lua/luatab/init.lua @@ -12,7 +12,7 @@ local function tabName(bufnr) return 'FZF' elseif buftype == 'terminal' then local _, mtch = string.match(file, "term:(.*):(%a+)") - return mtch ~= nil and mtch or 'zsh' + return mtch ~= nil and mtch or vim.fn.fnamemodify(vim.env.SHELL, ':t') elseif file == '' then return '[No Name]' end -- cgit v1.2.3