mirror of https://github.com/LazyVim/starter
use os default shell
parent
629620be0e
commit
7b3f6190df
|
@ -54,7 +54,7 @@ end
|
||||||
|
|
||||||
local function get_ssh_hosts(path)
|
local function get_ssh_hosts(path)
|
||||||
local hosts = {}
|
local hosts = {}
|
||||||
path = path or os.getenv("HOME") .. "/.ssh/config"
|
path = path or utils.os.home() .. "/.ssh/config"
|
||||||
|
|
||||||
if type(path) ~= "string" then
|
if type(path) ~= "string" then
|
||||||
print("expected arg path of type 'string' actual '" .. type(path))
|
print("expected arg path of type 'string' actual '" .. type(path))
|
||||||
|
@ -128,8 +128,8 @@ function TermToggleBash(direction)
|
||||||
if bash[direction].term == nil then
|
if bash[direction].term == nil then
|
||||||
bash[direction].term = Terminal:new({
|
bash[direction].term = Terminal:new({
|
||||||
id = next_id(),
|
id = next_id(),
|
||||||
display_name = "bash:" .. direction,
|
display_name = vim.o.shell .. ":" .. direction,
|
||||||
cmd = "bash",
|
cmd = vim.o.shell,
|
||||||
direction = direction,
|
direction = direction,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue