Use bash as vim shell if available

This commit is contained in:
ViViDboarder 2021-04-30 11:25:35 -07:00
parent 302d5816dd
commit 88f5da156e

View File

@ -5,7 +5,12 @@ if !1 | finish | endif
" Don't use fish as the default shell. This makes things weird
if &shell =~# 'fish$'
set shell=sh
set shell=bash
endif
" Don't use sh if we have bash
if &shell =~# '/sh$' && executable('bash')
set shell=bash
endif
function! s:smart_source_rc(name)