mirror of https://github.com/Llewellynvdm/fzf.git
[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>
This commit is contained in:
parent
96670d5f16
commit
44cfc7e62a
|
@ -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 ''
|
||||
|
|
Loading…
Reference in New Issue