From 1ecd12d523ffe031b5840316eeae1f24dd8920e4 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Sat, 10 Oct 2015 20:38:33 -0400 Subject: [PATCH] Add support for fish shell syntax Closes #626. --- plugin/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 9865db9..af74cbe 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2424,6 +2424,8 @@ function! s:ReplaceCmd(cmd,...) abort if s:winshell() let cmd_escape_char = &shellxquote == '(' ? '^' : '^^^' call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').redir.'"') + elseif &shell =~# 'fish' + call system(' begin;'.prefix.a:cmd.redir.';end ') else call system(' ('.prefix.a:cmd.redir.') ') endif