Skip to content
Myr

[vim] Add check for powershell 7 users (#3257)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by psarlov · committed by GitHub · parent 96670d5 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Pavel Sarlov <psarlov@asteasolutions.com>
  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
162 unmodified lines
163function s:get_version(bin)164 if has_key(s:versions, a:bin)165 return s:versions[a:bin]166 end167 let command = (&shell =~ 'powershell' ? '&' : '') . s:fzf_call('shellescape', a:bin) . ' --version --no-height'167 let command = (&shell =~ 'powershell\|pwsh' ? '&' : '') . s:fzf_call('shellescape', a:bin) . ' --version --no-height'168 let output = systemlist(command)169 if v:shell_error || empty(output)170 return ''171 endif
903 unmodified lines