Use bash as vim shell if available
This commit is contained in:
parent
302d5816dd
commit
88f5da156e
|
@ -5,7 +5,12 @@ if !1 | finish | endif
|
||||||
|
|
||||||
" Don't use fish as the default shell. This makes things weird
|
" Don't use fish as the default shell. This makes things weird
|
||||||
if &shell =~# 'fish$'
|
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
|
endif
|
||||||
|
|
||||||
function! s:smart_source_rc(name)
|
function! s:smart_source_rc(name)
|
||||||
|
|
Loading…
Reference in New Issue