mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-13 13:33:48 -05:00
Preserve fish as 'shell' for Vim 7.4.276 or later (#128)
As of 7.4.276, Vim understands how to run commands in subshells when 'shell' is fish. This fixes the most common problems with running external commands from Vim. Plugins may still need to accommodate for fish, but fixing the cognitive dissonance of having the user's shell changed outweighs the benefit to lazy plugin writers.
This commit is contained in:
@@ -61,7 +61,7 @@ if has('path_extra')
|
|||||||
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if &shell =~# 'fish$'
|
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
|
||||||
set shell=/bin/bash
|
set shell=/bin/bash
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user