Better detection of sh when bash is present

This commit is contained in:
ViViDboarder 2021-06-09 10:22:53 -07:00
parent ba11b4e68e
commit 0a7865275f

View File

@ -9,7 +9,7 @@ if &shell =~# 'fish$'
endif
" Don't use sh if we have bash
if &shell =~# '/sh$' && executable('bash')
if &shell =~# '/sh$' || &shell =~# '^sh$' && executable('bash')
set shell=bash
endif