本文介绍了是否可以在Windows 10 git-bash中使用fzf(命令行模糊查找器)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了.exe文件并将其放入我的PATH变量中. fzf似乎在命令提示符下工作.但是我想在git-bash中使用它.当我在git-bash中使用fzf时,它似乎开始了,但是什么也没发生.

I downloaded the .exe file and placed it into my PATH variable. fzf seems to work in command prompt. But I would like to use it in git-bash. When i use fzf in git-bash it seems to start but nothing happens.

任何建议都会有所帮助.我正在尝试为自己节省一些击键.

Any advice would be helpful. I'm trying to save myself some keystrokes.

推荐答案

是的.

我刚刚从rel ="nofollow noreferrer"> fzf-bin ,启动bash.exe,然后键入./fzf.exe

I just downloaded fzf.exe from fzf-bin, launched bash.exe, and typed ./fzf.exe

但是,为此,我首先使用简化的路径:

But for that, I use a simplified PATH first:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

通过该PATH,fzf才有效.

With that PATH, fzf just works.

这篇关于是否可以在Windows 10 git-bash中使用fzf(命令行模糊查找器)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-14 12:46