加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

shell – Fish不断尝试使用fish_vi_key_bindings,尽管它不再出现

发布时间:2020-12-16 01:24:20 所属栏目:安全 来源:网络整理
导读:我正在cygwin终端玩鱼和我的鱼.它工作正常,直到我尝试通过在config.fish中设置fish_vi_key_bindings打开VI键绑定. 那没起效.显然这仅适用于2.2.x版本,而在cygwin上我运行的是2.1.1版本.好的,没问题……让我们通过从config.fish中删除该行来停用它.目前这个文
我正在cygwin终端玩鱼和我的鱼.它工作正常,直到我尝试通过在config.fish中设置fish_vi_key_bindings打开VI键绑定.

那没起效.显然这仅适用于2.2.x版本,而在cygwin上我运行的是2.1.1版本.好的,没问题……让我们通过从config.fish中删除该行来停用它.目前这个文件看起来像这样:

# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish

# Path to your custom folder (default path is ~/.oh-my-fish/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish

# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish

# Custom plugins and themes may be added to ~/.oh-my-fish/custom
# Plugins and themes can be found at https://github.com/oh-my-fish/
Theme 'robbyrussell'
Plugin 'theme'

但无论如何,当我启动鱼控制台时,我收到以下消息:

Welcome to fish,the friendly interactive shell
Type help for instructions on how to use fish
Standard input: begin; fish_vi_key_bindings
                       ^
in . (source) call of file '-',called on standard input,in function '__fish_reload_key_bindings',called on line 209 of file '/usr/share/fish/functions/__fish_config_interactive.fish',in function '__fish_config_interactive',called on line 114 of file '/usr/share/fish/config.fish',in function '__fish_on_interactive',in event handler: handler for generic event 'fish_prompt'

而且壳完全没有变形.我无法删除我写的内容,自动完成功能不起作用等等.有什么帮助吗?谢谢.

您可能将通用变量$fish_key_bindings设置为您不想要的内容.尝试运行此(只需一次):
set -U fish_key_bindings fish_default_key_bindings

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读