motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 1ecd12d523ffe031b5840316eeae1f24dd8920e4 (tree)
parent f8aa87a4b5551052a41e25af80609e4624dcd58a
Author: Andy Russell <arussell123@gmail.com>
Date:   Sat, 10 Oct 2015 20:38:33 -0400

Add support for fish shell syntax

Closes #626.

Diffstat:
Mplugin/fugitive.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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