Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion plugin/rspec.vim
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function! s:RspecCommandProvided()
endfunction

function! s:DefaultTerminalCommand()
return "!" . s:ClearCommand() . " && echo " . s:default_command . " && " . s:default_command
return "!" . s:ClearCommand() . s:AndCommand() . "echo " . s:default_command . s:AndCommand() . s:default_command
endfunction

function! s:CurrentFilePath()
Expand All @@ -88,6 +88,14 @@ function! s:ClearCommand()
endif
endfunction

function! s:AndCommand()
if &shell[-4:] == "fish"
return "; and "
else
return " && "
endif
endfunction

function! s:IsMacGui()
return s:force_gui || (has("gui_running") && has("gui_macvim"))
endfunction
Expand Down