问题描述
我在 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
脚本。