address PR feedback by fixing docs and hardcoding bash to use -c on fish and pwsh environments

This commit is contained in:
Holden
2018-12-28 12:35:57 -05:00
parent c499825a0b
commit 3ec20a730d
2 changed files with 9 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ function! ale#job#PrepareCommand(buffer, command) abort
endif
if g:ale_shell =~? 'fish$\|pwsh$'
return ['/bin/sh', g:ale_shell_arguments, l:command]
return ['/bin/sh', '-c', l:command]
endif
return [g:ale_shell] + split(g:ale_shell_arguments) + [l:command]