Browse Source

refactor: default shell (#3867)

opalmay 2 years ago
parent
commit
de2bd1c3d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lua/lvim/core/terminal.lua

+ 1 - 1
lua/lvim/core/terminal.lua

@@ -117,7 +117,7 @@ M.init = function()
     term_opts.size = term_opts.size or lvim.builtin.terminal.terminals_defaults[term_opts.direction .. "_size"]
     -- size is calculated dynamically as a percentage of the current buffer
     term_opts.size = get_dynamic_terminal_size(term_opts.direction, term_opts.size)
-    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell
+    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell or vim.o.shell
     -- desc is used for the keymap description
     term_opts.desc = term_opts.desc
     if term_opts.desc == nil then