mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
Add scoop_git_bash to Windows bash candidates (#1545)
This commit is contained in:
@@ -53,7 +53,8 @@ function! s:bash()
|
|||||||
|
|
||||||
let custom_bash = s:conf('preview_bash', '')
|
let custom_bash = s:conf('preview_bash', '')
|
||||||
let git_bash = 'C:\Program Files\Git\bin\bash.exe'
|
let git_bash = 'C:\Program Files\Git\bin\bash.exe'
|
||||||
let candidates = filter(s:is_win ? [custom_bash, 'bash', git_bash] : [custom_bash, 'bash'], 'len(v:val)')
|
let scoop_git_bash = exists('$GIT_INSTALL_ROOT') ? '$GIT_INSTALL_ROOT' . '\bin\bash.exe : ''
|
||||||
|
let candidates = filter(s:is_win ? [custom_bash, git_bash, scoop_git_bash, 'bash'] : [custom_bash, 'bash'], 'len(v:val)')
|
||||||
|
|
||||||
let found = filter(map(copy(candidates), 'exepath(v:val)'), 'len(v:val)')
|
let found = filter(map(copy(candidates), 'exepath(v:val)'), 'len(v:val)')
|
||||||
if empty(found)
|
if empty(found)
|
||||||
|
|||||||
Reference in New Issue
Block a user