From 65b6cdb0f28de2629b6266b51d307d75d8c5c68c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 12 Dec 2020 10:28:26 +0900 Subject: [PATCH] [GF?] Use bash instead of sh [[ may not be available on sh --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 0c5f53c..b259835 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -624,7 +624,7 @@ function! fzf#vim#gitfiles(args, ...) " We're trying to access the common sink function that fzf#wrap injects to " the options dictionary. let preview = printf( - \ 'sh -c "if [[ {1} =~ M ]]; then %s; else %s {-1}; fi"', + \ 'bash -c "if [[ {1} =~ M ]]; then %s; else %s {-1}; fi"', \ executable('delta') \ ? 'git diff -- {-1} | delta --file-style=omit | sed 1d' \ : 'git diff --color=always -- {-1} | sed 1,4d',