@@ -16,6 +16,7 @@ let g:VimuxTmuxCommand = get(g:, 'VimuxTmuxCommand', 'tmux')
1616let g: VimuxUseNearest = get (g: , ' VimuxUseNearest' , v: true )
1717let g: VimuxExpandCommand = get (g: , ' VimuxExpandCommand' , v: false )
1818let g: VimuxCloseOnExit = get (g: , ' VimuxCloseOnExit' , v: false )
19+ let g: VimuxCommandShell = get (g: , ' VimuxCommandShell' , v: true )
1920
2021function ! VimuxOption (name) abort
2122 return get (b: , a: name , get (g: , a: name ))
@@ -175,7 +176,11 @@ endfunction
175176
176177function ! VimuxPromptCommand (... )
177178 let command = a: 0 == # 1 ? a: 1 : ' '
178- let l: command = input (VimuxOption (' VimuxPromptString' ), command , ' shellcmd' )
179+ if VimuxOption (' VimuxCommandShell' )
180+ let l: command = input (VimuxOption (' VimuxPromptString' ), command , ' shellcmd' )
181+ else
182+ let l: command = input (VimuxOption (' VimuxPromptString' ), command )
183+ endif
179184 if VimuxOption (' VimuxExpandCommand' )
180185 let l: command = join (map (split (l: command , ' ' ), ' expand(v:val)' ), ' ' )
181186 endif
0 commit comments