summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsarlov <sarlovpavel@gmail.com>2023-04-21 14:23:03 +0300
committerGitHub <noreply@github.com>2023-04-21 20:23:03 +0900
commit44cfc7e62a44e06fb419a6d87e8f80bb7a8281cd (patch)
treeb0d04cef8f49cec2ee854eb8406faf7066a92e7f
parent96670d5f16dcf23d590eb1d83d1de351b2e8fb15 (diff)
[vim] Add check for powershell 7 users (#3257)
Co-authored-by: Pavel Sarlov <psarlov@asteasolutions.com> Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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 ''