Skip to content

Commit

Permalink
always use $SHELL as default shell when
Browse files Browse the repository at this point in the history
open terminal

Signed-off-by: tracyone <[email protected]>
  • Loading branch information
tracyone committed Oct 21, 2022
1 parent d767bf8 commit a0fad4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions autoload/te/terminal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,11 @@ function! te#terminal#shell_pop(option) abort
if te#env#IsGui() && te#env#IsUnix()
let l:shell='bash'
else
let l:shell=&shell
if !empty($SHELL)
let l:shell=$SHELL
else
let l:shell=&shell
endif
endif
if exists('l:cmd')
let l:shell = l:cmd
Expand Down Expand Up @@ -626,7 +630,7 @@ function! te#terminal#shell_pop(option) abort
endif

if te#env#IsTmux()
call te#tmux#run_command(&shell, l:option)
call te#tmux#run_command(l:shell, l:option)
else
execute 'VimShell'
endif
Expand Down

0 comments on commit a0fad4f

Please sign in to comment.