aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorAlvaro Sevilla <alvaro@chainalysis.com>2021-07-13 20:02:33 +0200
committerAlvaro Sevilla <alvaro@chainalysis.com>2021-07-13 20:02:33 +0200
commitd8e9cae311c125b8469caa02efede2f5ae363a63 (patch)
tree14e45ad10dd72b24a7b591fb8292fb71586d1757 /lua
parent37c4fc2bf837491313bdc771f92768184929f2eb (diff)
downloadminitab.nvim-d8e9cae311c125b8469caa02efede2f5ae363a63.tar.xz
minitab.nvim-d8e9cae311c125b8469caa02efede2f5ae363a63.zip
Use $SHELL instead of 'zsh' for terminal tabs
Diffstat (limited to 'lua')
-rw-r--r--lua/luatab/init.lua2
1 files changed, 1 insertions, 1 deletions
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