首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Fish一直试图使用fish_vi_key_bindings,尽管它已经不在config.fish中了

Fish一直试图使用fish_vi_key_bindings,尽管它已经不在config.fish中了
EN

Stack Overflow用户
提问于 2015-07-10 08:07:11
回答 1查看 941关注 0票数 7

我在雪佛兰终点站玩鱼和鱼。在我试图通过在我的fish_vi_key_bindings中设置config.fish来打开VI键绑定之前,它一直工作得很好。

它不起作用。显然,这只从版本2.2.x开始工作,而在cygwin上,我正在运行版本2.1.1。好吧没问题..。让我们从config.fish中删除该行,从而禁用它。当前,该文件如下所示:

代码语言:javascript
复制
# 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'

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

代码语言:javascript
复制
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',
        called on standard input,

in event handler: handler for generic event 'fish_prompt'

壳完全不正常。我不能删除我写的东西,自动完成不工作,等等。有什么帮助吗?谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-10 16:00:17

您可能将通用变量$fish_key_bindings设置为您不想要的东西。试着运行这个(只运行一次):

代码语言:javascript
复制
set -U fish_key_bindings fish_default_key_bindings
票数 14
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31335600

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档