From 44cfc7e62a44e06fb419a6d87e8f80bb7a8281cd Mon Sep 17 00:00:00 2001 From: psarlov Date: Fri, 21 Apr 2023 14:23:03 +0300 Subject: [PATCH] [vim] Add check for powershell 7 users (#3257) Co-authored-by: Pavel Sarlov Co-authored-by: Junegunn Choi --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 94065e3c..317e9316 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -164,7 +164,7 @@ function s:get_version(bin) if has_key(s:versions, a:bin) return s:versions[a:bin] end - let command = (&shell =~ 'powershell' ? '&' : '') . s:fzf_call('shellescape', a:bin) . ' --version --no-height' + let command = (&shell =~ 'powershell\|pwsh' ? '&' : '') . s:fzf_call('shellescape', a:bin) . ' --version --no-height' let output = systemlist(command) if v:shell_error || empty(output) return ''