From 7b3f6190df956144eda086eb97b437f44626c13f Mon Sep 17 00:00:00 2001 From: Ahmed Zamouche Date: Mon, 4 Dec 2023 22:07:57 +0100 Subject: [PATCH] use os default shell --- lua/user/toggleterm.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/user/toggleterm.lua b/lua/user/toggleterm.lua index c028520..4672489 100644 --- a/lua/user/toggleterm.lua +++ b/lua/user/toggleterm.lua @@ -54,7 +54,7 @@ end local function get_ssh_hosts(path) local hosts = {} - path = path or os.getenv("HOME") .. "/.ssh/config" + path = path or utils.os.home() .. "/.ssh/config" if type(path) ~= "string" then print("expected arg path of type 'string' actual '" .. type(path)) @@ -128,8 +128,8 @@ function TermToggleBash(direction) if bash[direction].term == nil then bash[direction].term = Terminal:new({ id = next_id(), - display_name = "bash:" .. direction, - cmd = "bash", + display_name = vim.o.shell .. ":" .. direction, + cmd = vim.o.shell, direction = direction, hidden = true, })