From b6bea88f2eedb565385d354788d8281a6e1ea20f Mon Sep 17 00:00:00 2001 From: Miguel Barro Date: Sat, 19 Sep 2020 23:18:42 +0200 Subject: [PATCH] Adapt for vim using powershell as shell in windows. --- autoload/vundle/installer.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 472271a..9e9cccb 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -278,7 +278,8 @@ endf " --------------------------------------------------------------------------- func! vundle#installer#delete(bang, dir_name) abort - let cmd = ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh'))) ? + let cmd = (&shell == 'pwsh') ? 'rm -Recurse -Force' : + \ ((has('win32') || has('win64')) && empty(matchstr(&shell, 'sh'))) ? \ 'rmdir /S /Q' : \ 'rm -rf'