Closed DanSM-5 closed 5 months ago
I've replaced the use of pgrep with ps + awk as you've suggested. Seems to work ok for me. https://github.com/lincheney/fzf-tab-completion/commit/2262b9fc6c0635871b90108e81f1537628a89cbb Are you able to give it a try?
I've tested the fix for a couple of hours two pcs that I have and it is working fine 👍
I tested the fzf-tab-completion in bash from git for windows (gitbash) and it works fine but after each completion it prints the error
It happens because gitbash does not provide a
pgrep
binary.I've taken a look at the
fzf-bash-completion.sh
file and I noticed thatpgrep
is used on a single place to get descendant processes (pgrep -P
). I polyfilled it with this function for now (not sure if it fully complies withpgrep -P
but seems to yield equal results under linux mint, wsl (ubuntu) and gitbash).Maybe some support could be added for gitbash. It can be detected like this:
or it could be included in the readme in the bash setup section to mention this limitation of gitbash.