junegunn / junegunn/fzf

Rg preview pane shows error in preview.sh in Windows 11 and Powershell

Open
#3,571 1 comment 0 reactions 0 assignees View on GitHub
windows
Dominant language
Go
Stars
83k
Forks
2.9k
Avg merge
17h 8m
Merged PRs (30d)
10

Description

- [x] I have read through the manual page (`man fzf`)
- [x] I have the latest version of fzf
- [x] I have searched through the existing issues

## Info

- OS
- [ ] Linux
- [ ] Mac OS X
- [x] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [ ] zsh
- [ ] fish
- [x] PowerShell

## Problem / Steps to reproduce

1. Open Rg in Gvim
2. Search for a word
3. Preview pane shows `/bin/bash: line1: C:/Users/mindentropy/vimfiles/plugged/fzf.vim/bin/preview.sh`

I check preview.sh and it has `#!/usr/bin/env bash` but I am not sure whether it is picking up bash. Is Rg supported on Windows 11?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Rg preview-pane failure in Gvim on Windows 11 with PowerShell, then inspect preview.sh and its #!/usr/bin/env bash entry point. Check how the preview command is invoked in this environment; done means searching for a word displays the preview without the reported /bin/bash error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, powershell, vim
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.