如何从鱼中干净地删除 fzf 集成?

问题描述

我在 Mac 上使用 brew 安装了 fzf (https://github.com/junegunn/fzf#fish-shell)。前几天我用 brew 删除了它。

现在每次打开鱼壳时都会收到以下消息:

fish: 
  fzf_key_bindings
  ^
in function '__original_fish_user_key_bindings'
        called on line 46 of file ~/.local/share/omf/init.fish
in function 'fish_user_key_bindings'
in function '__fish_reload_key_bindings'
        called on line 228 of file /usr/local/Cellar/fish/3.1.2/share/fish/functions/__fish_config_interactive.fish
in function '__fish_config_interactive'
        called on line 170 of file /usr/local/Cellar/fish/3.1.2/share/fish/config.fish
in function '__fish_on_interactive'
in event handler: handler for generic event 'fish_prompt'

如何从这里彻底删除 fzf 集成?

解决方法

fzf 通过附加到 fish_user_key_bindings 将自身安装在鱼壳中。

您可以通过编辑 ~/.config/fish/functions/fish_user_key_bindings.fish 并删除对 fzf_key_bindings 的调用来移除其集成。

如果您通过运行 install 脚本安装了 fzf,当然您也可以运行其 uninstall 脚本。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...