make '!' cmd usable for powershell with -nop

This commit is contained in:
wunewww 2024-05-05 14:47:18 +08:00
parent b37ceb4428
commit bf5a7f83d6

View File

@ -50,14 +50,12 @@ endif
" The fish shell is not very compatible to other shells and unexpectedly " The fish shell is not very compatible to other shells and unexpectedly
" breaks things that use 'shell'. " breaks things that use 'shell'.
if &shell =~# 'fish$' if &shell =~# 'fish$'
set shell=/bin/bash set shell=/bin/bash
endif endif
if has('win32') if has('win32')
set shell=pwsh.exe set shell=pwsh.exe
set shellcmdflag=-command set shellcmdflag=-nop\ -c
set shellquote=\"
set shellxquote=
endif endif
" Put all temporary files under the same directory. " Put all temporary files under the same directory.