Skip to content

Commit 2542b64

Browse files
authored
Merge pull request #360 from sitiom/patch-1
Add PowerShell Core support
2 parents a4cd931 + fbe9019 commit 2542b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/sy/repo.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ endfunction
469469
function! s:wrap_cmd(bufnr, vcs, cmd) abort
470470
if has('win32')
471471
if has('nvim')
472-
let cmd = &shell =~ '\v%(cmd|powershell)' ? a:cmd : ['sh', '-c', a:cmd]
472+
let cmd = &shell =~ '\v%(cmd|powershell|pwsh)' ? a:cmd : ['sh', '-c', a:cmd]
473473
else
474474
if &shell =~ 'cmd'
475475
let cmd = join([&shell, &shellcmdflag, '(', a:cmd, ')'])

0 commit comments

Comments
 (0)