【问题标题】:fzf not workign with git bash (installation via scoop)fzf 不适用于 git bash(通过 scoop 安装)
【发布时间】:2022-06-20 11:21:23
【问题描述】:

我在 Windows 10 上通过 scoop 安装了 fzf,但不幸的是它在 cmd 上运行良好,但无法在 git bash 上运行。我在这里找到了一个类似的话题:Is it possible to use fzf (command line fuzzy finder) with windows 10 git-bash? 但我根本不懂这些命令。 我检查了 fzf 的垫片(Windows 命令行安装程序。)文件,我将其作为路径

path = "C:\Users\<user name>\scoop\apps\fzf\current\fzf.exe"

fzf 在 cmd 上运行良好,但我需要 bash 解释器。太烦人了,有人有意见吗? 当我写作时

`fzf --help`

该命令在 git bash 上被识别,这意味着该命令有效但没有返回任何内容。

【问题讨论】:

    标签: bash fzf


    【解决方案1】:

    对于 Windows 10 (git bash) - 试试 winpty fzf 也可以在.bashrc中设置别名:

    alias fzf="winpty fzf"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-15
      • 1970-01-01
      • 1970-01-01
      • 2019-12-03
      • 2021-02-03
      • 2013-08-25
      • 2013-05-17
      • 2014-09-12
      相关资源
      最近更新 更多